[whatwg] URL: javascript URLs

Anne van Kesteren annevk at annevk.nl
Fri Sep 28 04:45:47 PDT 2012


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?



More information about the whatwg mailing list