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

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

Issue 779173002: Be more strict about multiple documentElements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Do the c -> child rename Created 6 years 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/docfragment-multiple-document-elements.html
diff --git a/LayoutTests/fast/dom/docfragment-multiple-document-elements.html b/LayoutTests/fast/dom/docfragment-multiple-document-elements.html
new file mode 100644
index 0000000000000000000000000000000000000000..58be96e1c3acaad21ab420e2c2bc80323a90806f
--- /dev/null
+++ b/LayoutTests/fast/dom/docfragment-multiple-document-elements.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+
+<script>
+onload = function()
+{
+ var f = document.createDocumentFragment();
+ f.appendChild(document.createElement("div"));
+ f.appendChild(document.createElement("div"));
+ document.documentElement.remove();
+ document.appendChild(f);
+};
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698