Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / css-innerHTML.html
1 <body>
2 <p>Should say PASS:</p>
3 <div id="test"></div>
4 <script>
5 if (window.testRunner)
6     testRunner.dumpAsText();
7
8 var e= document.createElement('style');
9 e.innerHTML= "<p>foobar</p>"; // yes, that's invalid CSS
10 document.body.appendChild(e);
11 // If it were parsed, it would have been just "foobar".
12 document.getElementById("test").innerHTML = (e.textContent == "<p>foobar</p>") ? "PASS" : "FAIL";
13 </script>