4000b8468a8eb6ba28baa4331f6a2eca066d7dab
[WebKit-https.git] / LayoutTests / fast / dom / shadow / reprojection-id-modified.html
1 <!DOCTYPE html>
2
3 <html>
4 <body>
5
6 <script src="resources/polyfill.js"></script>
7
8 <div id="host1">
9     <div id="selected">A</div>
10     <div>B</div>
11     <div>C</div>
12     <div>D</div>
13     <div>E</div>
14     <div id="F">F</div>
15 </div>
16
17 <script>
18 if (window.testRunner)
19     testRunner.waitUntilDone();
20
21 var shadowRoot1 = new WebKitShadowRoot(host1);
22 shadowRoot1.innerHTML = '<div id="host2"><shadow></shadow></div>';
23
24 var host2 = shadowRoot1.getElementById('host2');
25 var shadowRoot2 = new WebKitShadowRoot(host2);
26 shadowRoot2.innerHTML = '<content select="#selected"></content>';
27
28 setTimeout(function() {
29     A = selected;
30     A.id = '';
31     F.id = 'selected';
32     if (window.testRunner)
33         testRunner.notifyDone();
34 }, 0);
35 </script>
36 </html>