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 18:58:18 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: whatwg <whatwg@lists.whatwg.org>, www-svg <www-svg@w3.org>
Message-ID: <op.vmmxjgt464w2qv@anne-van-kesterens-macbook-pro.local>
On Tue, 23 Nov 2010 18:37:51 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 11/23/10 12:20 PM, Anne van Kesteren wrote:
>> My plan is to define Element.id, Element.className, Element.classList,
>> and getElementsByClassName in DOM Core. And tie getElementById to
>> Element.id somehow, tie Element.id to an attribute named "id", and
>> Element.className to an attribute named "class".
> 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.

Anne van Kesteren
Received on Tuesday, 23 November 2010 17:58:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:29:45 UTC