blob: 0d9c0946921b0eea35a807e43eca8be934facb7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!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>
|