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

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

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 23 Nov 2010 12:04:37 -0800
Message-ID: <AANLkTimqVtXrwwNGDWJGiOJtAGGG3TcdcUJ-7Wq_JguA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Anne van Kesteren <annevk@opera.com>, whatwg <whatwg@lists.whatwg.org>, www-svg <www-svg@w3.org>
On Tue, Nov 23, 2010 at 11:06 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 11/23/10 2:02 PM, Anne van Kesteren wrote:
>> 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?
> Hmm.  I would think this should throw (since this won't do what you expect;
> e.g. CSS selectors and getElemetsByClassName won't start matching it).

I agree that unless we get other groups in on this change, and get
things like SVG cross-references and CSS styling reacting to these id
and class-list changes, then we're just making things more confusing
by making the DOM pretend that the class changed, when no other
systems agree.

/ Jonas
Received on Tuesday, 23 November 2010 20:05:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:23 UTC