[whatwg] classList should perhaps move from HTMLElement to Element

Boris Zbarsky bzbarsky at MIT.EDU
Tue Nov 23 10:48:03 PST 2010

On 11/23/10 12:58 PM, Anne van Kesteren wrote:
>> Why do we want to tie .className to a particular attribute name? I
>> agree it may not be that convenient for authors if a particular
>> language wants to use some other attr name for classes, but presumably
>> they'd have really good reasons for doing that if they do it at all?
> 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.


More information about the whatwg mailing list