From 3c864fe4cd5545f9adb064322800508693f7a07a Mon Sep 17 00:00:00 2001 From: chang liu <3dslayer@gmail.com> Date: Fri, 24 Feb 2017 21:44:22 +1100 Subject: [PATCH] fix(interactivity-checker): cast node name to lowercase for isInputElement function --- src/lib/core/a11y/interactivity-checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core/a11y/interactivity-checker.ts b/src/lib/core/a11y/interactivity-checker.ts index 8a40c1e4b8e6..7f879ac9e7a8 100644 --- a/src/lib/core/a11y/interactivity-checker.ts +++ b/src/lib/core/a11y/interactivity-checker.ts @@ -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. */