Re: Issues arising from not reparsing

On Mon, 26 Oct 2009 12:07:30 +0200, Olivier GENDRIN  
<olivier.gendrin@gmail.com> wrote:

> On Mon, Oct 26, 2009 at 10:01 AM, Thomas Broyer <t.broyer@ltgt.net>  
> wrote:
>> In <style><!--...--></style>, the <!-- and --> are part of the
>> stylesheet: http://www.w3.org/TR/CSS2/syndata.html#comments
>> I don't think HTML5 should change and go farther than parsing "style"
>> as RAWTEXT.
>
> Yes, I think that it's a demand made by Daniel Glazman as CSS WG
> co-chair in june 2007 [1] : let the CSS part of the UA handle the
> content of <style> (there may be a more explicit message, did not find
> it)
>
> [1] http://lists.w3.org/Archives/Public/public-html/2007Jun/0876.html

I think you're both missing the point. The strings <!-- and --> are still  
passed to the CSS parser.

What's being discussed is making validators whine about  
<style><!--...</style>, because that causes weird parsing in legacy  
browsers. (It could also be something like <style> *[foo="<!--"] { ... }  
</style> or <style> /* <!-- woot --!> */ </style>.)

-- 
Simon Pieters
Opera Software

Received on Monday, 26 October 2009 10:23:39 UTC