Skip to content

map-dup-name

Reports a <map> whose name an earlier <map> already has.

An image refers to its map by usemap="#name", and the browser finds the first one, so the second map is unreachable.

To fix, give each map its own name.

Reported
...
<input type="hidden" name="e">
...
<map name="m"></map>
...
<svg focusable="false"></svg>
...
angular:
lint:
rules:
map-dup-name: warn # off, warn (default), error
html:
lint:
rules:
map-dup-name: warn # off, warn (default), error
svelte:
lint:
rules:
map-dup-name: warn # off, warn (default), error
vue:
lint:
rules:
map-dup-name: warn # off, warn (default), error

Enabled by the presets: html/html-validate-standard.

Suppress one line with sudsy-disable-next-line map-dup-name in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
html-validate map-dup-name full