blob: 5af91d28064bed06c5c5e4abfc968e04d3b10a67 [file] [log] [blame]
<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>