OLD | NEW |
1 <!doctype HTML> | 1 <!doctype HTML> |
2 <script> | 2 <script> |
3 function start() { | 3 function start() { |
4 o4=document.documentElement; | 4 o4=document.documentElement; |
5 o22=document.body; | 5 o22=document.body; |
6 o46=document.createElementNS('http://www.w3.org/1999/xhtml','iframe'); | 6 o46=document.createElementNS('http://www.w3.org/1999/xhtml','iframe'); |
7 o46.src="resources/test.svg"; | 7 o46.src="resources/test.svg"; |
8 o46.onload=cb_nodesvgiframes_97_1; | 8 o46.onload=cb_nodesvgiframes_97_1; |
9 o4.appendChild(o46) | 9 o4.appendChild(o46) |
10 } | 10 } |
11 function cb_nodesvgiframes_97_1() { | 11 function cb_nodesvgiframes_97_1() { |
12 o59=o46.contentDocument.getElementById('svg0'); | 12 o59=o46.contentDocument.getElementById('svg0'); |
13 o61=o46.contentDocument.getElementById('svg3'); | 13 o61=o46.contentDocument.getElementById('svg3'); |
14 o61.innerHTML='<script><![CDATA[\r//]]><\/script>'; | 14 o61.innerHTML='<script><![CDATA[\r//]]><\/script>'; |
15 o22.appendChild(o59); | 15 o22.appendChild(o59); |
16 document.designMode='on'; | 16 document.designMode='on'; |
17 document.execCommand('selectall'); | 17 document.execCommand('selectall'); |
18 } | 18 } |
19 if (window.testRunner) | 19 if (window.testRunner) |
20 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
21 </script> | 21 </script> |
22 <body onload="start()"> | 22 <body onload="start()"> |
23 <!-- crbug.com/440836: Will crash if we have a bad cast to an Element node while
iterating through text. --> | 23 <!-- crbug.com/440836: Will crash if we have a bad cast to an Element node while
iterating through text. --> |
24 </body> | 24 </body> |
25 | 25 |
26 | 26 |
OLD | NEW |