W3C home > Mailing lists > Public > www-style@w3.org > December 2012

Re: some case-insensitivity cases to test

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 12 Dec 2012 12:31:01 -0500
Message-ID: <50C8BF55.8020908@mit.edu>
To: John Daggett <jdaggett@mozilla.com>
CC: www-style list <www-style@w3.org>, WWW International <www-international@w3.org>
On 12/12/12 8:10 AM, John Daggett wrote:
> Firefox and Opera both seem to match dotted capital i's.

Hmm.  This is for the [foo=bar] selector, right?

That looks like an obvious Gecko bug to me.  In particular, none of the 
other attr comparators (^=, *=, etc) do that; they all do 
ASCII-case-insensitive matching.  I filed 
https://bugzilla.mozilla.org/show_bug.cgi?id=820902

> input type=""
> FF CI(~C+T)

This seems like a clear bug to me too.  The caller calls 
LowerCaseEqualsASCII but the implementation thinks it's being asked to 
check whether the lowercase version of the string equals the given ASCII 
string, so it special-cases the two non-ASCII characters that have ASCII 
lowercase versions: U+212A KELVIN SIGN and U+0130 LATIN CAPITAL LETTER I 
WITH DOT ABOVE.  See https://bugzilla.mozilla.org/show_bug.cgi?id=820909

> JS MIME
> FF CI(~T)

Same issue with LowerCaseEqualsASCII here.

-Boris
Received on Wednesday, 12 December 2012 17:31:41 GMT

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