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

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 UTC