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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/import-template-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src='../../../resources/js-test.js'></script>
3
4 <div id='console'></div>
5 <template id='temp'>
6 <my-foo id='mf1'></my-foo>
7 <template>
8 <my-foo id='mf2'></my-foo>
9 </template>
10 </template>
11 <script>
12 description('');
13 var proto = Object.create(HTMLElement.prototype);
14 proto.createdCallback = function() {
15 var message = this.id + ' created\n';
16 document.getElementById('console').innerText = message;
17 }
18
19 document.registerElement('my-foo', {prototype: proto});
20
21 var template = document.getElementById('temp');
22 var dom = document.importNode(template.content, true);
23 </script>
OLDNEW
« 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