Require name and id to match on <map>
elements (map-id-name
)
HTML5 requires that when the id
attribute is present on a <map>
element it must have the same value as the required name
attribute.
Rule details
Examples of incorrect code for this rule:
<map name="foo" id="bar"></map>
Examples of correct code for this rule:
<map name="foo" id="foo"></map>
Version history
- 7.12.0 - Rule added.