silverme / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

The spec for DOMTokenList (element.classList) has changed #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See http://www.whatwg.org/specs/web-apps/current-work/#domtokenlist

This changes the required behavior of element.classList.
Summary of changes:
- tokens in DOMTokenList are no longer sorted alphabetically, nor are
duplicates removed. (length and item() will be different)
- classList.has() is now classList.contains()

Original issue reported on code.google.com by shogu...@gmail.com on 20 Aug 2009 at 10:38

GoogleCodeExporter commented 8 years ago
Damn. Why are they always changing their minds?

Original comment by dean.edw...@gmail.com on 20 Aug 2009 at 2:14

GoogleCodeExporter commented 8 years ago
OK. I've renamed "has" to "contains". That'll probably break a few things. :(

Original comment by dean.edw...@gmail.com on 23 Sep 2009 at 9:01