blob: 284fd1b36e3fb16247b62cf0df0cc22471b6bb0e [file] [log] [blame]
<html>
<body>
<p>This tests to see if 'style.display' for an element can be set dynamically. See bug 820947. </p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.writeln("<div id=\"result\"> \r\n This test: FAILED </div>\r\n");
document.writeln("<div id=\"announce:Top\">\r\n This text should be hidden </div>\r\n");
var announceTop = document.getElementById("announce:Top");
announceTop.style.display = "none";
if ( announceTop.style.display == "none" ) {
document.getElementById("result").innerHTML=' This test: PASSED!'
}
</script>
</body>
</html>