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

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

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 09 Oct 2012 16:59:24 +0200
Message-ID: <50743BCC.5060002@gmx.de>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: whatwg@lists.whatwg.org, Daniel Holbert <dholbert@mozilla.com>, Ian Hickson <ian@hixie.ch>
On 2012-10-09 13:51, Anne van Kesteren wrote:
> 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.)

Clarifying: that sounds like making it parse just like in any other URI 
(with which I would agree).

The test case at

   http://greenbytes.de/tech/tc/datauri/#svg

seems to imply that Opera doesn't do this right yet, though. (tested 
with 12.02)

Best regards, Julian
Received on Tuesday, 9 October 2012 15:00:09 GMT

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