002.html (379B)
1 <!doctype html> 2 <title>document.write</title> 3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script> 4 <script> 5 test( 6 function() { 7 document.write("<i>Filler Text"); 8 assert_equals(document.body.firstChild.localName, "i"); 9 assert_equals(document.body.firstChild.textContent, "Filler Text"); 10 } 11 ); 12 </script> 13 <div id="log"></div>