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

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

Issue 229753004: Handle didMoveToNewDocument() for <script> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.svg
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.svg b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.svg
new file mode 100644
index 0000000000000000000000000000000000000000..1650cb059f4ad8b3192812f74276d50c27b30f48
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.svg
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+<script>
+function init()
+{
+ var epilogue = document.createElementNS("http://www.w3.org/2000/svg", "script");
+ epilogue.setAttributeNS('http://www.w3.org/1999/xlink', 'href', "should-not-run.js");
+ document.documentElement.appendChild(epilogue);
+ window.top.document.adoptNode(document.documentElement);
+ window.top.done();
+}
+
+init();
+</script>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698