Ignore Parts of a Document
(tick_24Pro, tick_24Std, tick_24Lite)

There are some cases where you may want CSE HTML Validator to ignore, exclude, or bypass part of a document. For example, some sites (such as affiliate sites) give you bad/invalid HTML to insert into your documents, but you don't want to change or fix it because you'd rather just ignore it and leave it as it was given.

NOTE: These special comments only work with CSE HTML Validator's own validation engine. They are not recognized by HTML Tidy, nsgmls, JavaScript Lint, JSHint, JSLint, or PHP.

NOTE: Always use the exact syntax with case-sensitivity and no added formatting or spaces.

The "cseignore" Comment and Element (HTML/XHTML)

To ignore sections of HTML & XHTML documents, surround the section in <!--cseignore--> ... <!--/cseignore--> comments. (New v8.04)

Although its use is not recommended (the HTML compatible comments are preferred), CSE HTML Validator also provides the "cseignore" element so you can surround the parts of a document that you want to ignore in "cseignore" tags. Example: <cseignore>...ignore this...</cseignore>

NOTE: The "cseignore" element is included with the default configuration file. Other configuration files may not have support for the "cseignore" element.

NOTE: Does not ignore "high ASCII characters" for the "high ASCII" character check, if enabled.

The "cseignore" Comment (CSS)

To ignore sections of CSS documents, surround the section in /*cseignore*/ ... /*/cseignore*/ comments. Nesting of this comment is not allowed. (New v10.9923)

Note that if a /*cseignore*/ comment is found with no matching /*/cseignore*/ comment, then the /*cseignore*/ comment is not treated as a special ignore comment and no error or warning message is generated (and thus nothing is ignored).

The "cseignorespelling" Comment (HTML/XHTML)

To ignore spelling in sections of HTML & XHTML documents, surround the section in <!--cseignorespelling--> ... <!--/cseignorespelling--> comments. Nesting of this comment is allowed. (New v17.00)

With JavaScript Lint

JavaScript Lint includes some control comments that let you ignore part of a document:

/*jsl:ignore*/
(code that fires warnings)
/*jsl:end*/

To ignore all warnings in a file, place /*jsl:ignoreall*/ at the top of the file. For more information, please see the JavaScript Lint external links.