[whatwg] classList should perhaps move from HTMLElement to Element

Anne van Kesteren annevk at opera.com
Tue Nov 23 11:02:41 PST 2010


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?

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/



More information about the whatwg mailing list