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.
Example:
Code: Select all
<!--chvignore-->bad HTML here<!--/chvignore-->
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:
Code: Select all
/*jsl:ignore*/
(code that fires warnings)
/*jsl:end*/
For more information (
JavaScript Lint):
https://www.javascriptlint.com/docs/