W3C home > Mailing lists > Public > www-svg@w3.org > November 2010

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 23 Nov 2010 13:48:03 -0500
Message-ID: <4CEC0C63.9070600@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: whatwg <whatwg@lists.whatwg.org>, www-svg <www-svg@w3.org>
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.

Received on Tuesday, 23 November 2010 18:48:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:29 UTC