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> |