OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <a href="#" id="link"> | 6 <a href="#" id="link"> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("Changing the display of a link from inline to block invalidates
layout, but doesn't trigger a layout right away. Ensure that accessing the acce
ssibility object's text before the layout happens doesn't cause a crash."); | 10 description("Changing the display of a link from inline to block invalidates
layout, but doesn't trigger a layout right away. Ensure that accessing the acce
ssibility object's text before the layout happens doesn't cause a crash."); |
11 | 11 |
12 var link = document.getElementById("link"); | 12 var link = document.getElementById("link"); |
13 link.focus(); | 13 link.focus(); |
14 link.style.display = "block"; | 14 link.style.display = "block"; |
15 accessibilityController.focusedElement.deprecatedDescription; | 15 accessibilityController.focusedElement.name; |
16 </script> | 16 </script> |
17 </body> | 17 </body> |
OLD | NEW |