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

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: Rebaseline. 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..76b937f35a61a922fc1602ca0aa532010e0614f7
--- /dev/null
+++ b/LayoutTests/fast/dom/append-multiple-document-elements.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+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