Validate required element ancestors
- Rule ID:
- element-required-ancestor
- Category:
- Content model
- Standards:
- HTML5
HTML defines requirements for required ancestors on certain elements.
Rule details
Examples of incorrect code for this rule:
<area>
Examples of correct code for this rule:
<map>
<area>
</map>
Version history
- 7.2.0 - Rule added.