W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2005

[whatwg] Re: getElementsByClassName

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 6 Sep 2005 00:45:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0509060042480.25386@dhalsim.dreamhost.com>
On Tue, 6 Sep 2005, Dean Edwards wrote:
> > > 
> > > It would be better to define that class names should not contain 
> > > white space.
> > 
> > Well, we can't really control that, I mean, other languages can invent 
> > whatever they want (and frequently do).
> 
> I thought we were controlling that. Isn't that what we are doing?

We're defining what "class" means for HTML(5), and what the behaviour of 
getElemetsByClassName() in the DOM should be. But if someone invents 
FooBarML that has classes with spaces in it, CSS will match them (for 
example, ".a\ b"), and I don't see why getElementsByClassName should not 
be capable of matching them given that it falls simply out of the current 
definition.

However, this is all highly theoretical.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 5 September 2005 17:45:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:24 UTC