[whatwg] Re: getElementsByClassName

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

Received on Monday, 5 September 2005 17:38:01 UTC