I\'m building a JS library which has a requirement of looking at form[action] and a[href] values and resolving them into absolute URLs.
For example, I\'m on http://a
It turns out that the .href attribute of a A element (not .getAttribute('href'), but .href) returns the resolved (absolute) URL.
.href
.getAttribute('href')