accesskeys

accesskey values must be unique

manualconfidence: mediumseverity: minoroperable

Checks that no two elements on the page share the same accesskey attribute value.

Applies to. Applies whenever two or more elements share the same non-empty accesskey attribute value (case-insensitive).

Expectation. Every accesskey value on the page is unique. Duplicate accesskeys make keyboard-shortcut activation ambiguous: only one of the elements sharing the key can actually be reached by it, and which one is browser/platform-dependent.

Examples

can't tell
<a href="/s1" accesskey="s">S1</a>
<a href="/s2" accesskey="s">S2</a>

Two elements share the same `accesskey` value ("s"), which most browsers resolve unpredictably.

n/a
<a href="/a" accesskey="a">A</a>
<a href="/b" accesskey="b">B</a>

Every `accesskey` value on the page is unique.

View source