[whatwg] URL: javascript URLs

Boris Zbarsky bzbarsky at MIT.EDU
Fri Sep 28 08:34:31 PDT 2012


On 9/28/12 11:19 AM, Anne van Kesteren wrote:
> http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1809
>
> Gives "â„" in Chrome (charCodeAt -> 226). I cannot get it to alert in
> my Nightly (18.0a1 (2012-09-28), Mac), Opera yields one FFFD and
> Safari two. So maybe this is less of a problem than I thought. Simply
> convert to bytes, then decode as utf-8, then execute.

That's what Gecko does, certainly.  Though in this case it asserts in a 
debug build about input not actually being UTF-8, because it uses a 
conversion function that doesn't do replacement char bits.

I'm not sure why it never hits the alert.  A similar testcase not inside 
the live dom viewer works just fine.

-Boris



More information about the whatwg mailing list