Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.svg

Issue 532643002: Move pending async script to the correct resolved document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update expected outputs. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"> 2 <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
3 <script> 3 <script>
4 function init() 4 function init()
5 { 5 {
6 var script = document.createElementNS("http://www.w3.org/2000/svg", "script" ); 6 var script = document.createElementNS("http://www.w3.org/2000/svg", "script" );
7 script.setAttributeNS('http://www.w3.org/1999/xlink', 'href', "should-load.j s"); 7 script.setAttributeNS('http://www.w3.org/1999/xlink', 'href', "should-load.j s");
8 document.documentElement.appendChild(script); 8 document.documentElement.appendChild(script);
9 window.top.document.adoptNode(document.documentElement); 9 var contextDoc = window.top.document.implementation.createDocument("", null) ;
10 window.top.done(); 10 contextDoc.adoptNode(document.documentElement);
11 } 11 }
12 init(); 12 init();
13 </script> 13 </script>
14 </svg> 14 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698