W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Definitions of DOMTokenList algorithms and element.classList

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 13 Jul 2009 03:16:19 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907130315270.23663@hixie.dreamhostps.com>
On Mon, 15 Jun 2009, Adam Roben wrote:
> Step 3 of the algorithm for DOMTokenList.has says:
> > If the token indicated by token is one of the tokens in the object's
> > underlying string then return true and stop this algorithm.
> What does "token is one of the tokens" mean? I assume it means that a 
> case-sensitive string comparison of token with each of the tokens in the 
> DOMTokenList yields one match. It might be good to clarify this in the 
> spec. Note that the algorithms for DOMTokenList.add and 
> DOMTokenList.toggle use similar wording.


> Should methods of element.classList treat their arguments 
> case-insensitively in quirks mode? I think they should. This should be 
> mentioned in the spec.

I've clarified that DOMTokenList is always case-sensitive. We don't want 
to be adding more quirk-mode behaviours. Using quirks mode is not 
conforming (i.e. it's not a supported behaviour).

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 12 July 2009 20:16:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC