Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18078

Re: ScreenName validation

From Eric Bednarz <bednarz@fahr-zur-hoelle.org>
Newsgroups comp.lang.javascript
Subject Re: ScreenName validation
Organization Eric Conspiracy Secret Labs
References (2 earlier) <m28v807ec9.fsf@nntp.bednarz.nl> <r1que89eftmfejrieqstmo7bp1ra3e92rv@4ax.com> <m2hamnqzr4.fsf@nntp.bednarz.nl> <m2obgvii6g.fsf@nntp.bednarz.nl> <kcpv2o$epv$1@news.albasani.net>
Date 2013-01-12 00:22 +0100
Message-ID <m2mwwfi9ta.fsf@nntp.bednarz.nl> (permalink)

Show all headers | View raw


Stefan Weiss <krewecherl@gmail.com> writes:

> On 2013-01-11 21:22, Eric Bednarz wrote:

>> [in ECMAScript] a closing square
>> bracket literal actually has to be escaped [in a character (class|set)].

[...]

>> Except for JScript < 10. Them damn implementations of. :-)
>
> JScript behaving differently from the rest? Shocking.

The real shocker is that I shouldn't have talked about JScript
versions, but Internet Explorer document modes.

Internet Explorer <= 8 should never need the escape character.

IE >= 9 does need it, unless the document mode is <= 8.
Gotcha: in those cases @_jscript_version still evaluates to its native
value, suggesting that conditional compilation isn't even useful to
tag ECMAScript feature tests.

So when I wrote "JScript < 10", I looked at an old test case with a
pretty old document type declaration, resulting in
* IE 9: quirks mode, no escape char necessary, JScript 9
* IE 10: quirks mode, escape char necessary, JScript 10
Turns out IE 10's quirks mode is not the same as IE 9's quirks mode,
that's what it has the new IE 5 quirks mode for.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ScreenName validation "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-08 10:44 -0700
  Re: ScreenName validation Scott Sauyet <scott.sauyet@gmail.com> - 2013-01-08 11:02 -0800
    Re: ScreenName validation "Mel Smith" <med_cutout_syntel@aol.com> - 2013-01-08 13:05 -0700
    Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 01:28 +0100
      Re: ScreenName validation Jeff North <jnorthau@yahoo.com.au> - 2013-01-11 12:23 +1100
        Re: ScreenName validation Stefan Weiss <krewecherl@gmail.com> - 2013-01-11 03:38 +0100
        Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 20:35 +0100
          Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 21:22 +0100
            Re: ScreenName validation Stefan Weiss <krewecherl@gmail.com> - 2013-01-11 22:09 +0100
              Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-11 23:23 +0100
                Re: ScreenName validation Stefan Weiss <krewecherl@gmail.com> - 2013-01-12 00:26 +0100
                Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-12 00:54 +0100
              Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-12 00:22 +0100
          Re: ScreenName validation Scott Sauyet <scott.sauyet@gmail.com> - 2013-01-11 13:29 -0800
            Re: ScreenName validation Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2013-01-12 02:31 +0100

csiph-web