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

[whatwg] classList should perhaps move from HTMLElement to Element

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 23 Nov 2010 20:02:41 +0100
Message-ID: <op.vmm0iqba64w2qv@anne-van-kesterens-macbook-pro.local>
On Tue, 23 Nov 2010 19:48:03 +0100, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> On 11/23/10 12:58 PM, Anne van Kesteren wrote:
>> So that you do not need namespace knowledge.
> Namespace knowledge where?  As an implementor?  Or as an author?


> The whole point if a universal .classList and .className is to make  
> authors not have to deal with namespace knowledge, imo.  And it doesn't  
> require mapping to a specific attr name for that.

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?

Anne van Kesteren
Received on Tuesday, 23 November 2010 11:02:41 UTC

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