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

Unified Diff: LayoutTests/fast/dom/HTMLTemplateElement/import-template.html

Issue 727283002: Custom Elements in template should not be upgraded (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Using ensureTemplateDocument() Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/import-template-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLTemplateElement/import-template.html
diff --git a/LayoutTests/fast/dom/HTMLTemplateElement/import-template.html b/LayoutTests/fast/dom/HTMLTemplateElement/import-template.html
new file mode 100644
index 0000000000000000000000000000000000000000..7a6aae1da691cc1c168d8bfc1a125699f6ed9466
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLTemplateElement/import-template.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src='../../../resources/js-test.js'></script>
+
+<div id='console'></div>
+<template id='temp'>
+ <my-foo id='mf1'></my-foo>
+ <template>
+ <my-foo id='mf2'></my-foo>
+ </template>
+</template>
+<script>
+description('');
+var proto = Object.create(HTMLElement.prototype);
+proto.createdCallback = function() {
+ var message = this.id + ' created\n';
+ document.getElementById('console').innerText = message;
+}
+
+document.registerElement('my-foo', {prototype: proto});
+
+var template = document.getElementById('temp');
+var dom = document.importNode(template.content, true);
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/import-template-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698