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.
Is there a JS library that does this already? I’d have to believe so.
For more info about what’s needed, the spec:
It turns out that the
.href attribute of a A element (not
.href) returns the resolved (absolute) URL.