W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] Proposal for improved handling of '#' inside of data URIs

From: Daniel Holbert <dholbert@mozilla.com>
Date: Mon, 12 Sep 2011 13:24:35 -0700
Message-ID: <4E6E6A83.6040600@mozilla.com>
On 09/12/2011 12:47 PM, Michal Zalewski wrote:
> What about javascript: URLs?
>
> Right now, every browser seems to treat javascript:alert('#') in an
> "intuitive" manner.

FWIW -- in Gecko, I believe we actually do split "#')" out as a fragment 
identifier there (under-the-hood in our URI parsing code).

However, fragment identifiers don't have any special significance in 
"javascript:" URIs, so the "javascript:" handler ends up requesting the 
full URI, ignoring any distinction between the pre-# and post-# part.

~Daniel
Received on Monday, 12 September 2011 13:24:35 UTC

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