summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/xml-error-adopted.xml
blob: 9b1abeb1d42f14061666ee2b04eef27d1ef6e0fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
}
</script>

<xhtml:iframe src="javascript:if (top.body = top.document.body) document.implementation.createHTMLDocument().adoptNode(top.body)"/>

<script>
function test() {
    alert(body.ownerDocument === body.firstChild.ownerDocument ? 'PASS' : 'FAIL');
    if (window.testRunner)
        testRunner.notifyDone();
}

setTimeout(test, 0);
</script>
<elt attr="1" attr="2"/>
</svg>