Export to GitHub

base2 - issue #118

The spec for DOMTokenList (element.classList) has changed


Posted on Aug 20, 2009 by Grumpy Camel

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()

Comment #1

Posted on Aug 20, 2009 by Swift Camel

Damn. Why are they always changing their minds?

Comment #2

Posted on Sep 23, 2009 by Swift Camel

OK. I've renamed "has" to "contains". That'll probably break a few things. :(

Status: Started

Labels:
Type-Defect Priority-Medium Browser-All Module-base2.DOM