HTML_CodeSniffer analyzes the structure of a Web page and reports on various violations, split into three categories: errors, warnings and notices.
Works with the Web Content Accessibility Guidelines (WCAG) 2.0. Levels A, AA and AAA supported.
HTML_CodeSniffer is also available as a bookmarklet as well, allowing developers to analyze HTML code already published online, or even somebody else's code as well.
- First release of U.S. Section 508 standards for HTML_CodeSniffer.
- Fixed a bug in the sniff that checked for presence and position of labels, concerning input elements that did not have a "type" attribute. HTML\_CodeSniffer did not correctly interpret them as the default "text" input type, and instead emitted errors.
- Removed an "nbsp" and replaced with its numeric unicode value, so that the auditor would run correctly on XHTML pages properly served as xhtml+xml". The nbsp entity does not exist in XHTML served as XML by default, as XML itself does not define it.
- Fixed a bug in the sniff that fails links containing an image with no alt text. It produced a false positive if such an image were in the same link along with text that was all outside another element (such as a span).
- Applet elements with a missing body were being misdiagnosed as a Notice. It is now properly considered an Error.