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