html-validate rules in Sudsy
Every rule and setting of html-validate in the parity catalog, with the Sudsy equivalent. The lint share is the part of html-validate’s default set (in scope) whose findings Sudsy also reports on real-world code, with the preset that mirrors it. Where the tool has a page for an entry, the id links to it.
Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).
| Id | Sudsy | Status | Note |
|---|---|---|---|
allowed-links |
- | not yet | needs the link-target rules (allowExternal, allowRelative, allowBase) and a URL parse that the tree does not give |
area-alt |
area-alt |
partial | each area is checked alone, without the accessible option or the alt of an area with the same target |
aria-hidden-body |
aria-hidden-body |
covered | |
aria-label-misuse |
aria-label-misuse |
partial | generic elements and a without href; the strictly-allowed-but-not-recommended cases and allowAnyNamable are not reported |
attr-case |
attr-case |
partial | lowercase only, without the style and ignoreForeign options |
attr-delimiter |
attr-delimiter |
covered | |
attr-pattern |
attr-pattern |
covered | |
attr-quotes |
attr-quotes |
partial | the auto style only, without the style and unquoted options |
attr-spacing |
attr-spacing |
covered | |
attribute-allowed-values |
attribute-allowed-values |
partial | values given as a pattern in the metadata (id) are not checked |
attribute-boolean-style |
attribute-boolean-style |
partial | the omit style only, without the style option |
attribute-empty-style |
attribute-empty-style |
partial | the omit style only, without the style option |
attribute-misuse |
- | not yet | needs a table of the contexts in which each attribute is not allowed (type of input, presence of other attributes) |
autocomplete-password |
- | not yet | needs the input type and autocomplete token grammar, shared with valid-autocomplete |
class-pattern |
class-pattern |
covered | |
close-attr |
syntax-error |
partial | an end tag with attributes is the parser’s error |
close-order |
syntax-error |
partial | a stray end tag is the parser’s error; an unclosed element before a mismatched end tag is not named |
deprecated |
deprecated |
covered | |
deprecated-class |
- | not yet | needs the class list of frameworks’ deprecated classes, which html-validate takes from its own config |
deprecated-rule |
- | not yet | html-validate’s own deprecated rule ids; Sudsy rules are not deprecated this way |
doctype-html |
doctype-html |
covered | |
doctype-style |
doctype-style |
partial | uppercase only, without the style option |
element-case |
element-case |
partial | lowercase only, without the style and ignoreForeign options |
element-name |
element-name |
covered | |
element-permitted-content |
element-permitted-content |
partial | the content model of html-validate (data/model.txt); elements that no model row names are not judged |
element-permitted-occurrences |
element-permitted-occurrences |
partial | the content model of html-validate (data/model.txt); elements that no model row names are not judged |
element-permitted-order |
element-permitted-order |
partial | the content model of html-validate (data/model.txt); elements that no model row names are not judged |
element-permitted-parent |
- | deferred | needs the content model (permitted content, parents, order, required descendants) of every element, which the generated table does not hold |
element-required-ancestor |
- | deferred | needs the content model (permitted content, parents, order, required descendants) of every element, which the generated table does not hold |
element-required-attributes |
element-required-attributes |
covered | |
element-required-content |
element-required-content |
partial | the content model of html-validate (data/model.txt); elements that no model row names are not judged |
empty-heading |
empty-heading |
covered | |
empty-title |
empty-title |
covered | |
form-dup-name |
- | not yet | needs the grouping of radio and checkbox controls by form and name |
heading-level |
heading-level |
partial | a sectioning root (<dialog>, <section> with its own outline) does not reset the levels; no allowMultipleH1 and minInitialRank options |
hidden-focusable |
hidden-focusable |
partial | tabindex, disabled, hiding attributes and styles of the element and its ancestors; a disabling fieldset is not looked at |
id-pattern |
id-pattern |
covered | |
input-attributes |
- | not yet | needs the table of attributes allowed for each input type |
input-missing-label |
input-missing-label |
partial | does not skip what is inside aria-hidden |
long-title |
long-title |
partial | the length is fixed at 70, no maxlength option |
map-dup-name |
map-dup-name |
covered | |
map-id-name |
- | not yet | needs a <map> id and name comparison that the metadata does not describe |
meta-refresh |
meta-refresh |
partial | a delay is any content that starts with a nonzero digit; no allowLongDelay option |
missing-doctype |
missing-doctype |
covered | |
multiple-labeled-controls |
multiple-labeled-controls |
covered | |
name-pattern |
name-pattern |
covered | |
no-abstract-role |
no-abstract-role |
covered | |
no-autoplay |
no-autoplay |
covered | |
no-conditional-comment |
no-conditional-comment |
covered | |
no-deprecated-attr |
no-deprecated-attr |
covered | |
no-dup-attr |
no-duplicate-keys |
covered | |
no-dup-class |
no-duplicate-class |
covered | |
no-dup-id |
no-duplicate-id |
partial | ids are not scoped per <template>; no include and exclude options |
no-implicit-button-type |
no-implicit-button-type |
covered | |
no-implicit-close |
no-implicit-close |
covered | |
no-implicit-input-type |
no-implicit-input-type |
covered | |
no-inline-style |
no-inline-style |
partial | a style that sets only display is allowed; the allowedProperties and allowVariables options are not available |
no-missing-references |
no-missing-references |
partial | no include and exclude options |
no-multiple-main |
no-multiple-main |
covered | |
no-raw-characters |
syntax-error, no-ambiguous-ampersand |
partial | a lone & is no-ambiguous-ampersand, a raw < the parser’s syntax-error; html-validate does not report a >; the relaxed option is not available |
no-redundant-aria-label |
- | not yet | needs the accessible text of the element, which compares the label with the content |
no-redundant-for |
no-redundant-for |
covered | |
no-redundant-role |
no-redundant-role |
partial | the roles of 19 elements that always have the role, and img with a non-empty alt; the conditional implicit roles (<input> by type, <select>, <li>, <section>) are not checked |
no-self-closing |
no-self-closing |
covered | |
no-style-tag |
no-style-tag |
covered | |
no-trailing-whitespace |
no-trailing-whitespace |
partial | also reported inside pre and raw text |
no-unknown-attributes |
- | not yet | needs the per-element attribute table, which the generated metadata holds only for listed flags |
no-unknown-elements |
no-unknown-elements |
partial | no include and exclude options |
no-unused-disable |
- | not yet | html-validate directive comments; Sudsy reports unused suppressions for every language, not per rule |
no-utf8-bom |
- | not yet | the file reader and the parser take a byte order mark as text, so no rule can see it as a mark |
parser-error |
- | not planned | the id html-validate gives its syntax errors, which Sudsy reports as syntax-error |
prefer-button |
prefer-button |
covered | |
prefer-native-element |
prefer-native-element |
partial | 14 roles with a native element; other roles are not checked |
prefer-tbody |
prefer-tbody |
covered | |
presentation-role-style |
presentation-role-style |
covered | |
require-csp-nonce |
- | not yet | needs the configurable nonce attribute and the elements it applies to |
require-sri |
require-sri |
partial | no target, include and exclude options |
script-element |
syntax-error |
partial | an unclosed script is the parser’s error |
script-type |
script-type |
partial | the JavaScript MIME types and an empty type; the allowed module and importmap types are not special |
svg-focusable |
svg-focusable |
covered | |
tel-non-breaking |
- | not yet | needs the text of tel links and its whitespace rules |
text-content |
text-content |
partial | button only |
unique-landmark |
unique-landmark |
partial | header, footer, section and form landmarks are not checked |
unrecognized-char-ref |
unrecognized-char-ref |
partial | named references in text only; a missing semicolon, ignoreCase and references in attribute values are not checked |
valid-autocomplete |
- | not yet | needs the autocomplete token grammar (sections, hints, field names by input type) |
valid-for |
- | not yet | needs the label-to-control matching of ids by element type |
valid-id |
valid-id |
partial | the strict form only, without the relaxed option |
void |
- | not yet | deprecated in html-validate; void-style and no-void-end-tag replace it |
void-content |
no-void-end-tag |
covered | |
void-style |
void-style |
partial | the omit style only, without the style option |
wcag/h30 |
link-text |
partial | text of the link without the hidden parts, an img with alt or an aria-label inside; dynamic values are not told from static ones |
wcag/h32 |
form-submit |
partial | a submit button inside the form or one that names its id with form= |
wcag/h36 |
- | not yet | |
wcag/h37 |
img-alt |
partial | an img without alt unless aria-hidden or a presentation role |
wcag/h63 |
header-scope |
partial | the non-strict mode only, simple tables (one header row or one header column without thead) are left alone |
wcag/h67 |
- | not yet | |
wcag/h71 |
- | not yet |