Skip to content

Commit

Permalink
fix(interactivity-checker): cast node name to lowercase for isInputEl…
Browse files Browse the repository at this point in the history
…ement function (#3281)
  • Loading branch information
changLiuUNSW authored and mmalerba committed Mar 17, 2017
1 parent e120e8d commit 8f76f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/a11y/interactivity-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 8f76f96

Please sign in to comment.