href-attr-change-restyles-ref.html 654 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Test for bug 549797 - Removing href attribute doesn't remove link styling</title>
  5. <style type="text/css">
  6. :link, :visited {
  7. color:blue;
  8. }
  9. link {
  10. display:block;
  11. }
  12. #link2::before {
  13. content:"Test link 1";
  14. }
  15. #link4::before {
  16. content:"Test link 2";
  17. }
  18. #link6::before {
  19. content:"Test link 3";
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <p>
  25. <a>Test anchor 1</a>
  26. <link id="link2"/>
  27. <a href="http://example.com/1">Test anchor 2</a>
  28. <link id="link4" href="http://example.com/1"/>
  29. <a href="">Test anchor 3</a>
  30. <link id="link6" href=""/>
  31. </p>
  32. </body>
  33. </html>