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

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

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 12 Sep 2011 22:28:04 +0200
Message-ID: <5iqs6790srncoqep2b9dfflugrjllqtb6g@hive.bjoern.hoehrmann.de>
* Michal Zalewski wrote:
>What about javascript: URLs?
>
>Right now, every browser seems to treat javascript:alert('#') in an
>"intuitive" manner.

With <javascript:"<p style=margin-bottom:2000px>...<p id='x&quot'>#x"> 
Firefox will scroll down to the second p element with value "#x". That
is neither very intuitive nor interoperable. As it is, the draft says
http://tools.ietf.org/html/draft-hoehrmann-javascript-scheme-03 if you
want the "# as content" behavior, then that should be specified by some
higher level protocol (like the HTML specification when you want this
for <a href> attribute values for instance) as fragment identifiers are
scheme-independent.
-- 
Bj?rn H?hrmann ? mailto:bjoern at hoehrmann.de ? http://bjoern.hoehrmann.de
Am Badedeich 7 ? Telefon: +49(0)160/4415681 ? http://www.bjoernsworld.de
25899 Dageb?ll ? PGP Pub. KeyID: 0xA4357E78 ? http://www.websitedev.de/ 
Received on Monday, 12 September 2011 13:28:04 UTC

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