On Fri, 9 Aug 2002, Jeremy Dunck wrote:
> From http://www.w3.org/TR/REC-CSS1#forward-compatible-parsing:
> "any character except a hexadecimal digit can be escaped to remove its
> special meaning, by putting a backslash in front, Example: "\"" is a string
> consisting of one double quote. "
> In your example, the string "\/" makes the forward slash unusable as the
> beginning of the comment "/*".
> Therefore, there is no comment, and you have an illegal declaration.
That's what I was afraid of.
> I believe there -is- a way this could be a hack to exploit CSS, but it falls
> under forward-compatible parsing rules, and this hack would definitely -not-
> be a forward-compatible syntax. :)
Well, it's definitely a useful hack to know about, if you aren't worried
about breaking validation. IE will still consider it a comment, while
Moz/NS6+ see a broken rule. So you can use it to feed values
specifically to IE. I haven't done any extensive platform/version
checking, because I stopped researching it to investigate the validation
I'd be curious to see results from other browsers, though (I only tested
IE5.5 at NS7pr2 under NT4).
Ernest MacDougal Campbell III, MCP+I, MCSE [EMAIL-REMOVED]>
Web Design & Development: http://www.mentalcollective.com/
This message is guaranteed to be 100% eror frea!