map-dup-name
Angular templatesHTMLVue / SvelteVue / Sveltecorrectnessno fixdefault: warnhtml/html-validate-standard
What it does
Section titled “What it does”Reports a <map> whose name an earlier <map> already has.
Why it matters
Section titled “Why it matters”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.
Example
Section titled “Example”...<input type="hidden" name="e">...<map name="m"></map>...<svg focusable="false"></svg>...Configuration
Section titled “Configuration”angular: lint: rules: map-dup-name: warn # off, warn (default), errorhtml: lint: rules: map-dup-name: warn # off, warn (default), errorsvelte: lint: rules: map-dup-name: warn # off, warn (default), errorvue: lint: rules: map-dup-name: warn # off, warn (default), errorEnabled 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.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| html-validate | map-dup-name |
full |