HTMLAnchorElement Tests For The 'href' attribute
Test ResultTest DescriptionTest Value
Test get/set on a relative href attribute anchor.htm
Test get/set on a absolute href attribute http://somesite.com/anchor.htm
Test href attribute is an empty string empty string
Test for non-existent href attribute null
Test that a href attribute contains search string http://www.anothersite.com/path/page.htm?parameter=this%20is%a%20parameter
Test that a href attribute contains the username/password and the search string http://username:password@www.anothersite.com/path/page.htm?parameter=this%20is%a%20parameter
Test that a href attribute has not been lowercased http://WWW.SomeSite.com/INDEX.html
http://dev.w3.org/html5/spec/text-level-semantics.html#the-a-element

interface HTMLAnchorElement : HTMLElement {
  stringifier attribute DOMString href;
           attribute DOMString target;
           attribute DOMString rel;
  readonly attribute DOMTokenList relList;
           attribute DOMString media;
           attribute DOMString hreflang;
           attribute DOMString type;
           attribute DOMString text;

  // URL decomposition IDL attributes
           attribute DOMString protocol;
           attribute DOMString host;
           attribute DOMString hostname;
           attribute DOMString port;
           attribute DOMString pathname;
           attribute DOMString search;
           attribute DOMString hash;
};

Tags Used For Testing
Simple Anchor Relative Path
Simple Anchor Non-Relative Path
Empty String Anchor
Anchor with no attributes
href with a search string that is urlencoded
href with a username, password and search string that is urlencoded
Simple Anchor with some uppercase letters