This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 761 - Comments inside style elements should be ignored
Summary: Comments inside style elements should be ignored
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 18:21 UTC by Bj
Modified: 2006-12-12 06:01 UTC (History)
0 users

See Also:


Attachments

Description Bj 2004-05-29 18:21:17 UTC
From http://jigsaw.w3.org/css-validator/BUGS.html

''
XHTML user agents are required to remove comments from XHTML documents before 
further processing, hence e.g. 

<style type="text/css"><!--
     body { volume: 100% }
--></style>

is to be ignored by those user agents. The CSS Validator should give a strong 
warning when encountering this and ignore the rules inside such comments. 
''

(see also http://www.w3.org/mid/40b876e2.530189311@smtp.bjoern.hoehrmann.de)
Comment 1 Olivier Thereaux 2006-12-12 06:01:06 UTC
(In reply to comment #0)
> The CSS Validator should give a strong 
> warning when encountering this 

fixed per http://lists.w3.org/Archives/Public/www-validator-cvs/2006Dec/0037.html

> and ignore the rules inside such comments. 

fixes per http://lists.w3.org/Archives/Public/www-validator-cvs/2006Dec/0042.html