OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 </head> | 4 </head> |
5 | 5 |
6 <body> | 6 <body> |
7 | 7 |
8 <p>When an anchor tag catch 'href' attribute or release 'href' attribute, distri
bution should happen.</p> | 8 <p>When an anchor tag catch 'href' attribute or release 'href' attribute, distri
bution should happen.</p> |
9 | 9 |
10 <div id="host1"> | 10 <div id="host1"> |
11 <a id="anchor1" href="http://www.example.com/">Anchor 1</a> | 11 <a id="anchor1" href="http://www.example.com/">Anchor 1</a> |
12 <a id="anchor2" href="http://www.example.com/">Anchor 2</a> | 12 <a id="anchor2" href="http://www.example.com/">Anchor 2</a> |
13 </div> | 13 </div> |
14 | 14 |
15 <div id="host2"> | 15 <div id="host2"> |
16 <a id="anchor3">Anchor 3</a> | 16 <a id="anchor3">Anchor 3</a> |
17 <a id="anchor4">Anchor 4</a> | 17 <a id="anchor4">Anchor 4</a> |
18 </div> | 18 </div> |
19 | 19 |
20 <script> | 20 <script> |
21 if (window.testRunner) | 21 if (window.testRunner) |
22 testRunner.waitUntilDone(); | 22 testRunner.waitUntilDone(); |
23 | 23 |
24 host1.createShadowRoot().innerHTML = '<content select=":visited"></content>'; | 24 host1.createShadowRoot().innerHTML = '<content select=":enabled"></content>'; |
25 host2.createShadowRoot().innerHTML = '<content select=":visited"></content>'; | 25 host2.createShadowRoot().innerHTML = '<content select=":enabled"></content>'; |
26 | 26 |
27 setTimeout(function() { | 27 setTimeout(function() { |
28 anchor2.removeAttribute('href'); | 28 anchor2.removeAttribute('href'); |
29 anchor4.setAttribute('href', 'http://www.example.com/'); | 29 anchor4.setAttribute('href', 'http://www.example.com/'); |
30 testRunner.notifyDone(); | 30 testRunner.notifyDone(); |
31 }, 0); | 31 }, 0); |
32 | 32 |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
36 | 36 |
OLD | NEW |