21 lines
532 B
HTML
21 lines
532 B
HTML
<!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>
|