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

Side by Side Diff: LayoutTests/fast/html/imports/resources/custom-element-style.html

Issue 252713004: Make default for deep parameter in importNode false (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <template> 2 <template>
3 <style> 3 <style>
4 @import url(hello.css); 4 @import url(hello.css);
5 </style> 5 </style>
6 <h1>Hello</h1> 6 <h1>Hello</h1>
7 </template> 7 </template>
8 <script> 8 <script>
9 var t = document.currentScript.ownerDocument.querySelector('template'); 9 var t = document.currentScript.ownerDocument.querySelector('template');
10 var proto = Object.create(HTMLElement.prototype); 10 var proto = Object.create(HTMLElement.prototype);
11 proto.createdCallback = function() { 11 proto.createdCallback = function() {
12 var root = this.createShadowRoot(); 12 var root = this.createShadowRoot();
13 root.appendChild(document.importNode(t.content)); 13 root.appendChild(document.importNode(t.content, true));
14 }; 14 };
15 document.registerElement('x-test', {prototype: proto}); 15 document.registerElement('x-test', {prototype: proto});
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698