mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(interactivity-checker): cast node name to lowercase for isInputElement function (#3281)
This commit is contained in:
@@ -160,7 +160,7 @@ function isAnchorWithHref(element: HTMLElement): boolean {
|
||||
|
||||
/** Gets whether an element is an input element. */
|
||||
function isInputElement(element: HTMLElement): element is HTMLInputElement {
|
||||
return element.nodeName == 'input';
|
||||
return element.nodeName.toLowerCase() == 'input';
|
||||
}
|
||||
|
||||
/** Gets whether an element is an anchor element. */
|
||||
|
||||
Reference in New Issue
Block a user