[whatwg] Definitions of DOMTokenList algorithms and element.classList

Adam Roben aroben at apple.com
Mon Jun 15 08:40:32 PDT 2009


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.

-Adam




More information about the whatwg mailing list