blob: 0d9c0946921b0eea35a807e43eca8be934facb7a [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>
Test that scripts inserted while parsing an html fragment have the "already started" flag set,
and that it's copied over if the node is cloned.
</p>
<p id=result>
PASS
<p>
<div></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var d = document.querySelector("div")
d.innerHTML = "<script>document.querySelector('#result').textContent = 'FAIL'</" + "script>";
document.body.appendChild(d.querySelector("script").cloneNode(true));
</script>
</body>