(node)
| 91 | const removeElements = ['path', 'script'] |
| 92 | |
| 93 | function isFilteredOut(node) { |
| 94 | if (removeElements.includes(node.nodeName)) return true |
| 95 | if (node.attrs) { |
| 96 | if (node.attrs.find(attr => attr.name === 'role' && attr.value === 'tooltip')) return true |
| 97 | } |
| 98 | return false |
| 99 | } |
| 100 | |
| 101 | // Function to check if an element is interactive |
| 102 | function isInteractive(element) { |
no test coverage detected