W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

[whatwg] classList should perhaps move from HTMLElement to Element

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 23 Nov 2010 14:06:02 -0500
Message-ID: <4CEC109A.5090303@mit.edu>
On 11/23/10 2:02 PM, Anne van Kesteren wrote:
> So if I set Element.className on an element that is not in a namespace
> and has no attributes. Its attributes collection remains empty or
> something?

Hmm.  I would think this should throw (since this won't do what you 
expect; e.g. CSS selectors and getElemetsByClassName won't start 
matching it).

-Boris
Received on Tuesday, 23 November 2010 11:06:02 UTC

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