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

Unified Diff: LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-no-defaultView.html

Issue 159853004: Ensure that every Document has a single, distinct template content ownerDocument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Suppress expected w3c test failures Created 6 years, 10 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/HTMLTemplateElement/ownerDocument-no-defaultView.html
diff --git a/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-no-defaultView.html b/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-no-defaultView.html
new file mode 100644
index 0000000000000000000000000000000000000000..a355e5a8a8870f4914bece6ac35d94113d259c74
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLTemplateElement/ownerDocument-no-defaultView.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<script>
+description('HTMLTemplateElement content ownerDocument in a no-defaultView document should not be same as template');
+var inertDocument = document.implementation.createHTMLDocument('');
+var template = inertDocument.createElement('template');
+shouldNotBe("template.ownerDocument", "template.content.ownerDocument");
+</script>

Powered by Google App Engine
This is Rietveld 408576698