OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html class="retest-wait"> | |
3 <meta charset="utf-8"> | |
4 <title>href - a element</title> | |
5 <meta name="assert" | |
6 content="The a element should keep its link status after removing href if
there is still xlink:href"> | |
7 <link rel="match" href="href-a-element-ref.html"> | |
8 <style> | |
9 a:link rect { | |
10 fill: lime; | |
11 } | |
12 </style> | |
13 <body> | |
14 <svg width="100" height="100" viewBox="0 0 100 100" | |
15 xmlns:xlink="http://www.w3.org/1999/xlink" onload="loaded();"> | |
16 <a id="link" href="abc.html" xlink:href="def.html"> | |
17 <rect width="100%" height="100%" fill="red"/> | |
18 </a> | |
19 </svg> | |
20 </body> | |
21 <script> | |
22 function loaded() { | |
23 document.getElementById('link').removeAttribute('href'); | |
24 requestAnimationFrame(function() { | |
25 document.documentElement.classList.remove("reftest-wait"); | |
26 }); | |
27 } | |
28 </script> | |
29 </html> | |
OLD | NEW |