W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: Issues arising from not reparsing

From: Thomas Broyer <t.broyer@ltgt.net>
Date: Mon, 26 Oct 2009 10:01:54 +0100
Message-ID: <a9699fd20910260201q3ac23f20t773152fd2f20e4@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: Ian Hickson <ian@hixie.ch>, Henri Sivonen <hsivonen@iki.fi>, HTMLWG WG <public-html@w3.org>
On Mon, Oct 26, 2009 at 8:08 AM, Simon Pieters <simonp@opera.com> wrote:
> On Mon, 26 Oct 2009 01:59:49 +0200, Ian Hickson <ian@hixie.ch> wrote:
>
>>> It would be good to have similar (but less complex) content model
>>> restrictions on the other (r)cdata elements in order to make
>>> <style><!--</style> invalid because that causes weird parsing in legacy
>>> browsers and is clearly an authoring mistake.
>>
>> What rule do you want? Just making "<!--" invalid?
>
> I think that would be annoying for people who have <style><!--...--></style>
> today. I think I want the rule to be that elements not end with an open
> escape.

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.
(my very own opinion is that wrapping your CSS in <!--/--> is bad
practice nowadays anyway)

-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/
Received on Monday, 26 October 2009 09:02:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:09 UTC