144.html (734B)
1 <!DOCTYPE html> 2 <html><head> 3 <title>scheduler: SVG inline script changing the type attribute </title> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="testlib/testlib.js"></script> 7 </head> 8 <div id="log"></div> 9 <script> 10 var t = async_test(); 11 </script> 12 <svg> 13 <script type="text/plain"> 14 t.step(function() {assert_unreached()}); 15 </script> 16 </svg> 17 <script> 18 t.step(function() { 19 var s = document.querySelector("svg > script"); 20 s.textContent = "t.step(function() {log('inline script #1')})"; 21 s.type = ""; 22 s.parentNode.appendChild(s); 23 }); 24 onload = t.step_func(function() { 25 assert_array_equals(eventOrder, ["inline script #1"]); 26 t.done(); 27 }); 28 </script>