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 fbf4c1b commit 00a5c40Copy full SHA for 00a5c40
1 file changed
lib/rules/template-no-empty-headings.js
@@ -28,7 +28,10 @@ function isAriaHiddenTruthy(attr) {
28
return true;
29
}
30
if (value.type === 'GlimmerTextNode') {
31
- const chars = value.chars.toLowerCase();
+ // Normalize like other aria-* value checks: trim incidental whitespace
32
+ // and compare case-insensitively. `aria-hidden=" true "` is semantically
33
+ // "true" per the trim step used elsewhere in this rule family.
34
+ const chars = value.chars.trim().toLowerCase();
35
// Empty string is exempted (lean toward fewer false positives).
36
return chars === '' || chars === 'true';
37
0 commit comments