[whatwg] URL decomposition on HTMLAnchorElement interface
giecrilj at stegny.2a.pl
Fri Mar 27 11:22:16 PDT 2009
Instead of setting the host name of a hyperreference to null, use the host
name (of the base) of the current document instead.
Motivation: Local references have no explicit host name. Therefore,
removing the host name is like converting a hyperreference to a local
absolute reference, which is then treated by the user agent as a
hyperreference to the host (of the base) of the current document.
It may be tempting to count on that default behavior; however, it seems
better to substitute the inferred name explicitly so that the schema does
not change. OTOH, scripts that intend to convert the URI to a local one
would not achieve it that way. What is the assumed intention of this
More information about the whatwg