test_bug335816.html (1174B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=335816 5 --> 6 <head> 7 <meta http-equiv="Content-type" content="text/html; charset=UTF-8"> 8 <title>Test for Bug 335816</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 11 </head> 12 <body onload="test()"> 13 <pre id="test"> 14 <script class="testbody" type="text/javascript"> 15 16 /** Test for Bug 335816 */ 17 function test() 18 { 19 ok($("display").innerHTML != "Keep that breathless charm", "Hidden script not executed"); 20 SimpleTest.finish(); 21 } 22 23 function WontYouPleaseArrangeIt() 24 { 25 $("display").innerHTML = "Keep that breathless charm"; 26 } 27 28 SimpleTest.waitForExplicitFinish(); 29 </script> 30 </pre> 31 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=335816">Mozilla Bug 335816</a> 32 <p id="display">Lovely ... Never, ever change.</p> 33 34 <!-- There is a UTF-8 BOM just here - - - 35 | which should not be stripped 36 v --> 37 <div id="content" style="display: none"><script>WontYouPleaseArrangeIt();</script></div> 38 </body> 39 </html>