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

Re: case sensitivity and the OM

From: John Daggett <jdaggett@mozilla.com>
Date: Mon, 17 Dec 2012 17:27:48 -0800 (PST)
To: www-style@w3.org
Message-ID: <459633363.6814495.1355794068208.JavaMail.root@mozilla.com>

Boris Zbarsky wrote:

> > Huh, you say?  Seems like a no-brainer but ASCII case
> > insensitivity can be defined as either (1) lowercase the
> > characters [A-Z] in both strings and compare characters
> 
> This is how the HTML spec defines it.  See 
> http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#case-sensitivity-and-string-comparison 
> the definition of "ASCII case-insensitive".  See also the
> definitions of "Converting a string to ASCII lowercase" and
> "Converting a string to ASCII uppercase" in the same section.
> 
> Note that http://dom.spec.whatwg.org/#dom-document-createelement
> says "If the context object is an HTML document, let localName be
> converted to ASCII lowercase." where that last bit is a link to
> http://dom.spec.whatwg.org/#converted-to-ascii-lowercase which uses
> the exact same wording.

Ah, excellent, I stand corrected.  Yeah, it would be good to reference
that in CSS specs where that wording is necessary.

John Daggett
Received on Tuesday, 18 December 2012 01:28:19 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:22 UTC