Skip to content

Commit

Permalink
VHints: SVGElement: accept [role=button]
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Jan 5, 2020
1 parent c18bfb9 commit 162dabb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/link_hints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ var VHints = {
? ((anotherEl = (element as XrayedObject<Element>).wrappedJSObject || element) as MayBeSVGElement
).onclick || (anotherEl as MayBeSVGElement).onmousedown
: element.getAttribute("onclick"))
|| (s = element.getAttribute("role")) && (<RegExpI> /^button$/i).test(s)
|| this.ngEnabled_ && element.getAttribute("ng-click")
|| this.jsaEnabled_ && (s = element.getAttribute("jsaction")) && this.checkJSAction_(s)
? ClickType.attrListener
Expand Down

0 comments on commit 162dabb

Please sign in to comment.