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

[whatwg] URL decomposition on HTMLAnchorElement interface

From: Kartikaya Gupta <lists.whatwg@stakface.com>
Date: Fri, 27 Mar 2009 11:55:18 +0000
Message-ID: <20090327115518.C4F418DB002D@zapata.dreamhost.com>
On Thu, 26 Mar 2009 23:01:34 -0400, Biju <bijumaillist at gmail.com> wrote:
> On Thu, Mar 26, 2009 at 5:26 PM, Kartikaya Gupta
> > This behavior seems rather inconsistent and possibly buggy.
> 
> At first look I also thought it is inconsistent
> But later I found Firefox is very consistent.
> I think reason why it happening like that is because Firefox clean up
> URL by removing extra slash before host name
> and adding a slash after host name and also convert host name to lowercase.
> 

Well, yes, I'm sure there is a simple set of rules that will explain this behavior from the implementation point of view. However, it is inconsistent for the average user.

The behavior where nulling out the hostname causes the first path component to become the hostname is particularly odd, IMO. I can't think of any use of this behavior that would be considered anything other than an ugly hack.

Cheers,
kats
Received on Friday, 27 March 2009 04:55:18 GMT

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