Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / css-innerHTML.html
blob92cccaea8d557b96723c3c41319c2e35ae727b90
1 <body>
2 <p>Should say PASS:</p>
3 <div id="test"></div>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
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>