021.html (480B)
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("<body><sp"); 8 }); 9 </script>an>Filler Text</span> 10 <script> 11 t.step(function() { 12 assert_equals(document.body.childNodes[0].localName, "span"); 13 assert_equals(document.body.childNodes[0].textContent, "Filler Text"); 14 } 15 ); 16 t.done(); 17 </script> 18 <div id="log"></div>