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