OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtm
l"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtm
l"> |
2 <script> | 2 <script> |
3 if (window.testRunner) { | 3 if (window.testRunner) { |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 } | 6 } |
7 </script> | 7 </script> |
8 | 8 |
9 <xhtml:iframe src="javascript:if (top.body = top.document.body) document.impleme
ntation.createHTMLDocument().adoptNode(top.body)"/> | 9 <xhtml:iframe src="javascript:if (top.body = top.document.body) document.impleme
ntation.createHTMLDocument().adoptNode(top.body)"/> |
10 | 10 |
11 <script> | 11 <script> |
12 function test() { | 12 function test() { |
13 alert(body.ownerDocument === body.firstChild.ownerDocument ? 'PASS' : 'FAIL'
); | 13 alert(body.ownerDocument === body.firstChild.ownerDocument ? 'PASS' : 'FAIL'
); |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 testRunner.notifyDone(); | 15 testRunner.notifyDone(); |
16 } | 16 } |
17 | 17 |
18 setTimeout(test, 0); | 18 setTimeout(test, 0); |
19 </script> | 19 </script> |
20 <elt attr="1" attr="2"/> | 20 <elt attr="1" attr="2"/> |
21 </svg> | 21 </svg> |
OLD | NEW |