Skip to content

Commit 8f76f96

Browse files
changLiuUNSWmmalerba
authored andcommitted
fix(interactivity-checker): cast node name to lowercase for isInputElement function (#3281)
1 parent e120e8d commit 8f76f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/a11y/interactivity-checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function isAnchorWithHref(element: HTMLElement): boolean {
160160

161161
/** Gets whether an element is an input element. */
162162
function isInputElement(element: HTMLElement): element is HTMLInputElement {
163-
return element.nodeName == 'input';
163+
return element.nodeName.toLowerCase() == 'input';
164164
}
165165

166166
/** Gets whether an element is an anchor element. */

0 commit comments

Comments
 (0)