From 8f76f96b1aa2088bdc0973431d5b0bbfa0e56d88 Mon Sep 17 00:00:00 2001 From: Chang Liu <3dslayer@gmail.com> Date: Sat, 18 Mar 2017 05:10:39 +1100 Subject: [PATCH] fix(interactivity-checker): cast node name to lowercase for isInputElement function (#3281) --- 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. */