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

Pseudo-comments inside <style>

From: Andreas Prilop <Prilop2007@trashmail.net>
Date: Fri, 3 Aug 2007 16:07:41 +0200 (MEST)
To: www-validator-css@w3.org
Message-ID: <Pine.GSO.4.63.0708031557001.13939@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:
 http://www.unics.uni-hannover.de/nhtcapri/temp/no-comment.x.html


However, with "content-type: text/html" there is no such warning
and the <style> is recognized.
Test case:
 http://www.unics.uni-hannover.de/nhtcapri/temp/no-comment.html


I think there should be also a warning with "text/html".
 http://www.w3.org/TR/xhtml1/#C_4
 http://www.htmlhelp.com/reference/css/style-html.html#embedding
Received on Friday, 3 August 2007 14:07:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:19 GMT