| { |
| "id": "label", |
| "selector": "input, textarea", |
| "matches": "label-matches", |
| "tags": [ |
| "cat.forms", |
| "wcag2a", |
| "wcag412", |
| "wcag131", |
| "section508", |
| "section508.22.n", |
| "ACT" |
| ], |
| "metadata": { |
| "description": "Ensures every form element has a label", |
| "help": "Form elements must have labels" |
| }, |
| "all": [], |
| "any": [ |
| "aria-label", |
| "aria-labelledby", |
| "implicit-label", |
| "explicit-label", |
| "non-empty-title", |
| "non-empty-placeholder", |
| "presentational-role" |
| ], |
| "none": ["help-same-as-label", "hidden-explicit-label"] |
| } |