2 <p>Should say PASS:
</p>
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";