W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

[whatwg] classList should perhaps move from HTMLElement to Element

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 03 May 2012 10:45:36 +1000
Message-ID: <4FA1D530.9080009@mcc.id.au>
Rik Cabanier:
> Who would do this in the current SVG world? As you say, (!elt.className)
> would always return false...
> Are you worried that new content won't work with an old viewer?

No that would actually continue to behave the same.  So I misspoke when 
I said things will "break" -- author expectations will break instead if 
they assume that that code which works on HTML elements would also work 
on SVG elements.

But maybe that's OK?
Received on Wednesday, 2 May 2012 17:45:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:41 UTC