[whatwg] Re: getElementsByClassName

Dean Edwards dean at edwards.name
Mon Sep 5 17:38:01 PDT 2005


Ian Hickson wrote:
> On Tue, 6 Sep 2005, Lachlan Hunt wrote:
>>So, you're saying that it's possible that some hypothetical langauge may 
>>define a class attribute with any character as the delimiter, not just 
>>white space?  So, for example, a language could use semi-colons like 
>>this: foo:class="foo bar;baz" and thus, for that language, gEBCN("foo 
>>bar") would match that?
> 
> 
> Yeah. Theoretically. It's not exactly likely, but...
> 
>>In which case, would it be worth adding a note to the spec stating that 
>>implementations should not assume that all languages will use white 
>>space delimiters between class names?
> 
> 
> Well, it's highly theoretical. It seems such a note might be more 
> confusing than helpful. What do you think?
> 

It would be better to define that class names should not contain white 
space.

-dean




More information about the whatwg mailing list