W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [css3-syntax] Making U+0080 to U+009F "non-ASCII"?

From: Glenn Adams <glenn@skynav.com>
Date: Fri, 25 Jan 2013 13:05:53 -0700
Message-ID: <CACQ=j+fZMNRJHSkLAJ7RG3Cqu0jgRhayGDkJQkdAoAfWCccwVg@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Simon Sapin <simon.sapin@kozea.fr>, Bjoern Hoehrmann <derhoermi@gmx.net>, www-style list <www-style@w3.org>
On Fri, Jan 25, 2013 at 11:24 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> I suspect it's approximately zero compat risk.  I'm willing to make
> the change iff other browsers are cool with it.  I'd make the change
> in WebKit, but I can't make heads nor tails of our lexer.
>

WK already treats any UC code point >= 128 as identifier start (vid.
CSSParser.cpp):

template <typename CharacterType>
static inline bool isIdentifierStartAfterDash(CharacterType*
currentCharacter)
{
    return isASCIIAlpha(currentCharacter[0]) || currentCharacter[0] == '_'
|| currentCharacter[0] >= 128
        || (currentCharacter[0] == '\\' &&
isCSSEscape(currentCharacter[1]));
}
Received on Friday, 25 January 2013 20:06:40 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT