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

[whatwg] DOMTokenList feedback

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 20 Jul 2009 08:50:56 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907200843490.23663@hixie.dreamhostps.com>
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)
> tokenlist[index]
> Returns the token with index index. The tokens are sorted alphabetically."

Fixed.


> 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."

Done.


> 3) case sensitivity. Would be nice to address [1].
> 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.
> [1] 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.

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

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