OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 | 3 |
4 | 4 |
5 <p>This test ensures that elements distributed to a content element can be taken
from a shadow element</p> | 5 <p>This test ensures that elements distributed to a content element can be taken
from a shadow element</p> |
6 | 6 |
7 <div id="host1"> | 7 <div id="host1"> |
8 <div>These elements</div> | 8 <div>These elements</div> |
9 <div>should be</div> | 9 <div>should be</div> |
10 <div>reprojected</div> | 10 <div>reprojected</div> |
11 </div> | 11 </div> |
12 | 12 |
13 <script> | 13 <script> |
14 var shadowRoot1 = host1.createShadowRoot(); | 14 var shadowRoot1 = host1.createShadowRoot(); |
15 shadowRoot1.innerHTML = '<div id="host2"><content></content></div>'; | 15 shadowRoot1.innerHTML = '<div id="host2"><content></content></div>'; |
16 | 16 |
17 var shadowRoot2 = shadowRoot1.getElementById('host2').createShadowRoot(); | 17 var shadowRoot2 = shadowRoot1.getElementById('host2').createShadowRoot(); |
18 shadowRoot2.innerHTML = '<div><shadow><content></content></shadow><div>A</div></
div>' | 18 shadowRoot2.innerHTML = '<div><shadow></shadow><div>A</div></div>' |
19 </script> | 19 </script> |
20 | 20 |
21 </html> | 21 </html> |
OLD | NEW |