W3C home > Mailing lists > Public > www-svg@w3.org > November 2010

Re: [whatwg] classList should perhaps move from HTMLElement to Element

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 23 Nov 2010 20:08:11 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: whatwg <whatwg@lists.whatwg.org>, www-svg <www-svg@w3.org>
Message-ID: <op.vmm0rxv364w2qv@anne-van-kesterens-macbook-pro.local>
On Tue, 23 Nov 2010 20:06:02 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> 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).

I would much rather just make it work. Otherwise moving it to Element does  
not really seem right.

Anne van Kesteren
Received on Tuesday, 23 November 2010 19:08:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:29 UTC