fix(interactivity-checker): cast node name to lowercase for isInputElement function (#3281)

This commit is contained in:
Chang Liu
2017-03-18 05:10:39 +11:00
committed by mmalerba
parent e120e8da92
commit 8f76f96b1a
+1 -1
View File
@@ -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. */