W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2007

Pseudo-comments inside <style>

From: Andreas Prilop <Prilop2007@trashmail.net>
Date: Mon, 10 Sep 2007 18:30:08 +0200 (MEST)
To: www-validator-css@w3.org
Message-ID: <Pine.GSO.4.63.0709101828060.11105@s5b004.rrzn.uni-hannover.de>

http://jigsaw.w3.org/css-validator/  correctly treats

   <style type="text/css">

as a comment in XHTML with "application/xhtml+xml".
It also issues a warning

|  Do not put style rules inside HTML comments

Test case:

However, with "content-type: text/html" there is no such warning
and the <style> is recognized.
Test case:

I think there should be also a warning with "text/html".
Received on Monday, 10 September 2007 16:30:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:00 UTC