Here's a little "trick" that most people aren't aware of. If you have a certain part or section of an HTML or XHTML document that you want CSS HTML Validator to ignore, then you can enclose it in "chvignore" comments.
NOTE: This works only with CSS HTML Validator's own validator engine. HTML Tidy, nsgmls, JavaScript Lint, PHP, etc will not understand these special comments.
If using JavaScript Lint for JavaScript checking, then you can use this to ignore part of a document:
I still get a HTML Tidy warning with this:
<!--cseignore-->
<link type="text/css" media="all" href="/css/<%= InsertCSS() %>" rel="stylesheet" />
<!--/cseignore-->
... and get a Javascript SyntaxError with this:
<!--cseignore-->
<div id="nav"><script type="text/javascript"><%= InsertMenu() %></script></div>
<!--/cseignore-->
If you have code to comment out the non-CSE parts (like HTML Tidy or nsgmls), maybe you can add that to this thread as well?
Thanks Rick, I've added this: NOTE: This works only with CSS HTML Validator's own validator engine. HTML Tidy, nsgmls, JavaScript Lint, PHP, etc will not understand these special tags and comments.
I've also added information about ignoring part of a document with JavaScript Lint. I don't believe the other checkers support ignoring parts of a document.