MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / hasMeaningfulText

Function hasMeaningfulText

lib/html.js:114–117  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

112 }
113
114 function hasMeaningfulText(node) {
115 if (textElements.includes(node.nodeName)) return true
116 return false
117 }
118
119 function hasInteractiveDescendant(node) {
120 if (!node.childNodes) return false

Callers 2

hasInteractiveDescendantFunction · 0.85
removeNonInteractiveFunction · 0.85

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected