[whatwg] DOMTokenList feedback
ian at hixie.ch
Mon Jul 20 01:50:56 PDT 2009
On Mon, 6 Jul 2009, Sylvain Pasche wrote:
> I'm looking at the Gecko implementation of element.classList. I had a
> few comments about the spec.
> 1) http://html5.org/tools/web-apps-tracker?from=3253&to=3254 missed something.
> There is still a mention of alphabetical sort order in the beginning of
> section 2.8.3:
> "element = tokenlist . item(index)
> Returns the token with index index. The tokens are sorted alphabetically."
> 2) contains/add/remove/toggle should mention what happens if an empty string
> token is passed in the token argument. Looking at the DOM Core exceptions,
> throwing a SYNTAX_ERROR seems to be the best match in this case (if we
> consider an empty string as invalid):
> "SYNTAX_ERR, introduced in DOM Level 2.
> If an invalid or illegal string is specified."
> 3) case sensitivity. Would be nice to address .
> Note that the definition of uniqueness for .length and .item() will also need
> to be revisited if we want to handle classes in a case-insensitive way in
> quirks mode.
>  http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-June/020425.html
I believe I replied to that e-mail a few days ago.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg