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 be757a1 commit 00d9bb7Copy full SHA for 00d9bb7
1 file changed
lib/rules/template-require-mandatory-role-attributes.js
@@ -55,7 +55,9 @@ function getStaticAttrValue(node, name) {
55
56
function getTagName(node) {
57
if (node?.type === 'GlimmerElementNode') {
58
- return node.tag;
+ // HTML tag names are case-insensitive; normalize so <INPUT>/<Input> match
59
+ // the lowercase keys in AX_CONCEPTS_BY_TAG and the semantic-role maps.
60
+ return node.tag?.toLowerCase();
61
}
62
if (node?.type === 'GlimmerMustacheStatement' && node.path?.original === 'input') {
63
// The classic `{{input}}` helper renders a native <input>.
0 commit comments