OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 Distributed under both the W3C Test Suite License [1] and the W3C |
| 4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
| 5 policies and contribution forms [3]. |
| 6 |
| 7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
| 8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
| 9 [3] http://www.w3.org/2004/10/27-testcases |
| 10 --> |
| 11 <!DOCTYPE html> |
| 12 <head> |
| 13 <meta charset="utf-8"> |
| 14 <title>Shadow DOM Test - Tests a reprojection with a select attribute.</title> |
| 15 <link rel="match" href="reprojection-002-ref.html"> |
| 16 <link rel="author" title="Anna Ogawa" href="mailto:anna.ogawa.0219@gmail.com"> |
| 17 <link rel="author" title="Hayato Ito" href="mailto:hayato@google.com"> |
| 18 <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#reproje
ction"> |
| 19 <meta name="assert" content="A node is distributed into more than one insertion
point with a select attribute."> |
| 20 <script src="../../testcommon.js"></script> |
| 21 <style> |
| 22 .pass { color: green; } |
| 23 .fail { color: red; } |
| 24 </style> |
| 25 </head> |
| 26 <body> |
| 27 <p>You should see green text saying "Apple" below.</p> |
| 28 <div id="host"> |
| 29 <div class="A pass">Apple.</div> |
| 30 <div class="B fail">Orange.</div> |
| 31 </div> |
| 32 <script> |
| 33 var shadowRoot = host.createShadowRoot(); |
| 34 shadowRoot.innerHTML = '<div id="host2">Hello a Shadow Root.<content></content
><div class="fail">Banana.</div></div>'; |
| 35 var host2 = shadowRoot.getElementById("host2"); |
| 36 var shadowRoot2 = host2.createShadowRoot(); |
| 37 shadowRoot2.innerHTML = '<div>Hello a Shadow Root2.</div><div><content select=
".A"></content></div>'; |
| 38 </script> |
| 39 </body> |
| 40 </html> |
OLD | NEW |