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:02:41 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: whatwg <whatwg@lists.whatwg.org>, www-svg <www-svg@w3.org>
Message-ID: <op.vmm0iqba64w2qv@anne-van-kesterens-macbook-pro.local>
On Tue, 23 Nov 2010 19:48:03 +0100, Boris Zbarsky <bzbarsky@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?

Either?


> 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
http://annevankesteren.nl/
Received on Tuesday, 23 November 2010 19:03:26 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:46 GMT