Skip to content

Commit 6cc136f

Browse files
committed
docs(template-require-valid-alt-text): add WCAG SC 4.1.2 citation to JSDoc
1 parent 6101f28 commit 6cc136f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/rules/template-require-valid-alt-text.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ function hasAttr(node, name) {
1818
* alt / aria-label / aria-labelledby / title. The empty-name treatment aligns with
1919
* ACCNAME 1.2 §4.3.2's aria-label step (2D), which normalizes empty/whitespace
2020
* to "no name"; we apply the same normalization to the other fallbacks.
21+
* (Why a name is needed: WCAG SC 4.1.2 — "all user interface components have a
22+
* name and role that can be programmatically determined.")
2123
*
2224
* NOTE: This does not validate that aria-labelledby IDREFs reference existing IDs.
2325
* Rule consumers should layer that check separately if needed.

0 commit comments

Comments
 (0)