Re: [css21] ident production does not match <identifier>

On Mon, Feb 15, 2010 at 11:08 AM, Jonathan Kew <jonathan@jfkew.plus.com> wrote:
> On 15 Feb 2010, at 16:24, Anne van Kesteren wrote:
>
>> http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier mentions U+00A1 which has number 161 and seems about right. Yet the grammar defines nonascii as anything beyond 177 which is U+00B1 which does not really make sense to me. Thinking about it some more explicitly excluding 127-160 does not really seem needed either to me and maybe they should become part of nonascii (would also make the name somewhat more logical).
>>
>> Am I missing something?
>
> I take it you're referring to the line
>
>        nonascii        [^\0-\177]
>
> The \177 there is an OCTAL escape, so that means 127 decimal / 0x7f hex, which is correct for the ASCII range.

Argh, octal is never a good idea for anything ever.  >_<  It always
causes far more confusion than can be justified by the benefits of
using it.

~TJ

Received on Monday, 15 February 2010 17:15:29 UTC