Re: [css3-conditional] whitespace processing in supportsCSS

Florian Rivoal:
> Instead, since it doesn't introduce any ambiguity or difficulty of
> implementation, I propose that we allow white spaces before and after both.
>
> window.supportsCSS("color", "green"); //-> true
> window.supportsCSS("color", "green "); //-> true
> window.supportsCSS("color", " green"); //-> true
> window.supportsCSS("color ", "green"); //-> true
> window.supportsCSS(" color", "green"); //-> true

I think that's fine.  Comments in the value and normal CSS escaping 
should work too, but these shouldn't be allowed in the property value. 
(The value argument is parsed, but the property name argument is just 
trimmed and looked up as a string.)

Received on Saturday, 4 August 2012 03:28:14 UTC