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