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.

-Boris
Received on Thursday, 26 March 2009 12:08:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT