Comments: Eliminating the Style Attribute Considered Harmful

I assume you mean the:

@-debug; * { border: 1px solid white ! important; } /* see below */

line? Yeah, that one is a bit of a workout for the ol' tokenizer... :)

Posted by Boris at May 9, 2003 11:52 PM

Yes, that's the one. I'm also not convinced Hixie is right. In my mind, it makes more sense from an error-recovery perspective to assume that the malformed @-expression was an @-rule. It makes far less sense to assume that the author intended it to be a selector.

Posted by hyatt at May 10, 2003 12:11 AM

It may make more sense, but it's not what the grammar actually says.... Note that the goal here is not error-recovery but forward-compatibility.

That said, dbaron would be the person most likely to have an authoritative answer on what the right course of action is.

Posted by Boris at May 10, 2003 9:34 AM