W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] URL decomposition on HTMLAnchorElement interface

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 26 Mar 2009 15:08:52 -0400
Message-ID: <49CBD2C4.3020101@mit.edu>
Jo?o Eiras wrote:
> Browsers also support partially setting each of the url fields separately, although error handling between all of them is very inconsistent.
> Note: if you specify this behavior, then you need to specify what happens for http:, https:, data:, mailto: and unknown:

If you specify the setters then you also need to specify how this 
affects the value of the "href" attribute in the DOM.  For example, in 
Gecko if you have an <a href="foo#bar"> which has base URI 
"http://example.com/" and you set anchor.hash on that anchor to "baz", 
then the attribute value is changed to "http://example.com/foo#baz".  I 
can't speak to what happens in other browsers.

Received on Thursday, 26 March 2009 12:08:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:10 UTC