We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6101f28 commit 6cc136fCopy full SHA for 6cc136f
1 file changed
lib/rules/template-require-valid-alt-text.js
@@ -18,6 +18,8 @@ function hasAttr(node, name) {
18
* alt / aria-label / aria-labelledby / title. The empty-name treatment aligns with
19
* ACCNAME 1.2 §4.3.2's aria-label step (2D), which normalizes empty/whitespace
20
* 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.")
23
*
24
* NOTE: This does not validate that aria-labelledby IDREFs reference existing IDs.
25
* Rule consumers should layer that check separately if needed.
0 commit comments