Skip to content

Commit

Permalink
Add HTML validation rules for missing elements
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Nov 2, 2023
1 parent 1ebf862 commit afaebd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/govuk-frontend/.htmlvalidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ module.exports = {
// Allow pattern attribute on input type="number"
'input-attributes': 'off',

// Require input to have a label
'input-missing-label': 'error',

// Allow inline styles for testing purposes
'no-inline-style': 'off',

// Require all form field and ARIA references to exist
'no-missing-references': 'error',

// Allow for explicit roles on regions that have implict roles
// We do this to better support AT with older versions of IE that
// have partial support for HTML5 semantic elements
Expand Down

0 comments on commit afaebd3

Please sign in to comment.