019.html (466B)
1 <!doctype html> 2 <title>document.write</title> 3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script> 4 <script> 5 var t = async_test(); 6 t.step(function() { 7 document.write("<i"); 8 }); 9 </script> 10 >Filler Text</i> 11 <script> 12 t.step(function() { 13 assert_equals(document.body.childNodes[0].localName, "i"); 14 assert_equals(document.body.childNodes[0].textContent, "Filler Text"); 15 } 16 ); 17 t.done(); 18 </script> 19 <div id="log"></div>