Disallow referring to non-existent ID

Checking for whether ID or the list of ID specified to for, form, aria-* and, more are referencing to it that existed in the same document.

Rule Details

👎 Examples of incorrect code for this rule

<label for="foo">Text Field</label><input id="bar" type="text" />

👍 Examples of correct code for this rule

<label for="foo">Text Field</label><input id="foo" type="text" />

Interface

  • Type: boolean
  • Deafult Value: true

Default severity

error