W3C home > Mailing lists > Public > www-style@w3.org > June 2010

Re: Definition of Identifier?

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sat, 26 Jun 2010 12:42:03 -0700
Message-ID: <AANLkTikyQwEmpDf6lP6jBT4ZPv6gwzIW-8MO8iVnDGV4@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
On 6/26/10, L. David Baron <dbaron@dbaron.org> wrote:
Bad date format.

> On Friday 2010-06-25 20:37 -0700, Garrett Smith wrote:
Better.

>> IS "--" a valid identifier?
>
> Looks like the grammar and the prose disagree here.  I added this as
> http://wiki.csswg.org/spec/css2.1#issue-174
>
> I think we should fix the prose to match the grammar.  Gecko and
> WebKit both seem to follow the grammar according to this testcase:
> http://dbaron.org/css/test/2010/css21-issue-174
>

IE, and Opera too. FWIW, they all throw errors on that passed to
querySelectorAll.

document.querySelectorAll("--"); // error.

Though some seem to parse "\" as a valid identifier. Perhaps they
allow escape sequence of {0, 6] instead of {1, 6}

document.querySelectorAll("\\"); // expect error.

Garrett
Received on Saturday, 26 June 2010 19:42:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:28 GMT