Update dom script with angular bindings (#707)
This commit is contained in:
@@ -270,6 +270,12 @@ function isScriptOrStyle(element) {
|
||||
return tagName === "script" || tagName === "style";
|
||||
}
|
||||
|
||||
function hasAngularClickBinding(element) {
|
||||
return (
|
||||
element.hasAttribute("ng-click") || element.hasAttribute("data-ng-click")
|
||||
);
|
||||
}
|
||||
|
||||
function hasWidgetRole(element) {
|
||||
const role = element.getAttribute("role");
|
||||
if (!role) {
|
||||
@@ -389,6 +395,10 @@ function isInteractable(element) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (tagName === "div" && hasAngularClickBinding(element)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// support listbox and options underneath it
|
||||
// div element should be checked here before the css pointer
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user