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

Unified Diff: LayoutTests/fast/dom/append-multiple-document-elements.html

Issue 1237623006: Post-Mutation Event checks must re-check document constraints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include future from patch for Issue 509912. Created 5 years, 5 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/append-multiple-document-elements.html
diff --git a/LayoutTests/fast/dom/append-multiple-document-elements.html b/LayoutTests/fast/dom/append-multiple-document-elements.html
new file mode 100644
index 0000000000000000000000000000000000000000..c805599f12edb0dbbcd31b914be393cd51e945b2
--- /dev/null
+++ b/LayoutTests/fast/dom/append-multiple-document-elements.html
@@ -0,0 +1,19 @@
+<body>
esprehn 2015/07/14 07:29:17 Add a DOCTYPE unless this test needs quirks mode.
+If this does not assert in a debug build, the test passed.
+<div id="f1">
+<div id="f2"></div>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+var doc = document.implementation.createDocument("http://www.w3.org/2000/svg",
+ null);
+f1.addEventListener("DOMNodeRemovedFromDocument", function () {
+ doc.appendChild(f2);
+});
+try {
+ doc.appendChild(f1);
+} catch (e) {
+ console.log(e.message);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698