| <html> |
| <head> |
| <script src="../resources/js-test.js"></script> |
| </head> |
| <body> |
| <a href="#" id="link"> |
| <p id="description"></p> |
| <div id="console"></div> |
| <script> |
| 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 accessibility object's text before the layout happens doesn't cause a crash."); |
| |
| var link = document.getElementById("link"); |
| link.focus(); |
| link.style.display = "block"; |
| accessibilityController.focusedElement.name; |
| </script> |
| </body> |