22 lines
586 B
HTML
22 lines
586 B
HTML
<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>
|