Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / append-multiple-document-elements.html
blob76b937f35a61a922fc1602ca0aa532010e0614f7
1 <!DOCTYPE html>
2 If this does not assert in a debug build, the test passed.
3 <div id="f1">
4 <div id="f2"></div>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var doc = document.implementation.createDocument("http://www.w3.org/2000/svg",
10 null);
11 f1.addEventListener("DOMNodeRemovedFromDocument", function () {
12 doc.appendChild(f2);
13 });
14 try {
15 doc.appendChild(f1);
16 } catch (e) {
17 console.log(e.message);
19 </script>