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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/resources/shadow-dom-iframe.html

Issue 2495623002: Rename traverseFrames to pierce and traverse shadow dom too. (Closed)
Patch Set: Rename traverseFrames to pierce. Created 4 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <template id="shadow-template">
4 <div style="color: red;"><h1>Hello from the shadow dom!</h1></div>
5 </template>
6 </head>
7 <body onload="addShadowDOM()">
8 <div id="element_in_an_iframe"></div>
9 <script>
10 function addShadowDOM() {
11 var host = document.getElementById("element_in_an_iframe").createShadowRoot( );
12 var template = document.querySelector("#shadow-template");
13 host.appendChild(template.content);
14 template.remove();
15 }
16 </script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698