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

[whatwg] URL: javascript URLs

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 28 Sep 2012 13:45:47 +0200
Message-ID: <CADnb78giWJY+mgnWyeiUud=7h=jjtDNbsBYyPwT102WGX_5wXQ@mail.gmail.com>
To: WHATWG <whatwg@whatwg.org>

I have been looking into defining javascript URLs on top of
http://url.spec.whatwg.org/ and would like some help. You get the
JavaScript source by concatenating the path and fragment, with "#"
inbetween of course, and then removing the percent encoding (for
non-hierarchical URLs query appears to be part of the path). Then you
feed that to the JavaScript parser/interpreter.

What I am wondering about is why e.g. %E2%84 results in a code point
in both Gecko and Chrome and whether that is required for
compatibility (in Opera I get U+FFFD as I expected).

bz also described some kind of special byte-based script in
but it appears no other browser has that.

Anything else I'm missing?


Received on Friday, 28 September 2012 11:46:22 UTC

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