Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isInteractiveElement(node) {
const type = this.getElementType(node);
if (!dom.has(type)) {
return false;
}
const elementSchemaMatcher = (element) => {
return type === element.name && this.attributesComparator(element.attributes, node);
};
if (interactiveElementRole.some(elementSchemaMatcher)) {
return true;
}
return false;
},
attributesComparator (baseAttr = [], node) {