4 <script src="resources/polyfill.js"></script>
9 <p>When an anchor tag catch 'href' attribute or release 'href' attribute, distribution should happen.</p>
12 <a id="anchor1" href="http://www.example.com/">Anchor 1</a>
13 <a id="anchor2" href="http://www.example.com/">Anchor 2</a>
17 <a id="anchor3">Anchor 3</a>
18 <a id="anchor4">Anchor 4</a>
22 if (window.testRunner)
23 testRunner.waitUntilDone();
25 new WebKitShadowRoot(host1).innerHTML = '<content select=":enabled"></content>';
26 new WebKitShadowRoot(host2).innerHTML = '<content select=":enabled"></content>';
28 setTimeout(function() {
29 anchor2.removeAttribute('href');
30 anchor4.setAttribute('href', 'http://www.example.com/');
31 testRunner.notifyDone();