W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2012

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 9 Oct 2012 13:51:49 +0200
Message-ID: <CADnb78ivA8UkOYTVqVuN_gJG+TrRE1=YcYDMd_b0RHX61CKVeA@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: whatwg@lists.whatwg.org, Daniel Holbert <dholbert@mozilla.com>
On Tue, Oct 9, 2012 at 1:50 AM, Ian Hickson <ian@hixie.ch> wrote:
> On Sat, 10 Sep 2011, Daniel Holbert wrote:
>> I'm writing with a proposal to improve the handling of "#" in data URIs.
>> I'm particularly looking for feedback from other browser vendors, but of
>> course feedback from others is welcome as well. [...]
>
> Anne has since tried to respec URL parsing in detail, with the work in
> progress being here:
>
>    http://url.spec.whatwg.org/
>
> I recommend checking that spec to see if it does what you want, and if
> not, working with Anne to see if it can be adjusted accordingly or if
> something else needs to happen.

This is not written down explicitly just yet, but for data URLs I
think we want the fragment to *not* be part of the actual resource,
but rather as an input to the resource so things like

data:text/html,<style>:target{background:lime}</style><p id=x>test#x

work. (Fails in Chrome, but works fine in Opera and Firefox already.)


-- 
http://annevankesteren.nl/
Received on Tuesday, 9 October 2012 11:52:24 GMT

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