Bug 26358
Summary: | Implement HTML 5's HTMLElement.classList property | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> |
Component: | DOM | Assignee: | Adam Roben (:aroben) <aroben> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Enhancement | CC: | mike, sam |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | All | ||
URL: | http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-classlist |
Adam Roben (:aroben)
HTML 5 adds a "classList" property to HTMLElement. The classList property makes it easy to add, remove, and toggle classes on an Element. We should implement support for this in WebKit!
See <http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-classlist> for a little bit of information about classList, and <http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#domtokenlist-0> for information about the DOMTokenList interface, which is the interface the object returned by classList implements.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Roben (:aroben)
<rdar://problem/6972266>
Adam Roben (:aroben)
I sent an email to the WHATWG mailing list asking about the case-sensitivity of element.classList methods: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-June/020425.html>.
Adam Roben (:aroben)
*** This bug has been marked as a duplicate of 20709 ***