[whatwg] Proposal for improved handling of '#' inside of data URIs
Bjoern Hoehrmann
derhoermi at gmx.net
Mon Sep 12 13:28:04 PDT 2011
* 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"'>#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/
More information about the whatwg
mailing list