4e35ce79b6b74f1fe544d34c9cdd18aa2300b4ac
[WebKit-https.git] / LayoutTests / fast / dom / shadow / distribution-id-modified.html
1 <!DOCTYPE html>
2
3 <html>
4 <body>
5
6 <script src="resources/polyfill.js"></script>
7
8 <div id="host">
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 shadowRoot = new WebKitShadowRoot(host);
22 shadowRoot.innerHTML = '<content select="#selected"></content>';
23
24 setTimeout(function() {
25     A = selected;
26     F.id = 'selected';    
27     A.id = '';
28     if (window.testRunner)
29         testRunner.notifyDone();
30 }, 0);
31 </script>
32 </html>