(parent, tagName)
| 209 | } |
| 210 | |
| 211 | function getChildrenByTagName(parent, tagName) { |
| 212 | let node = parent.firstChild; |
| 213 | const children = []; |
| 214 | while (node) { |
| 215 | if (node.nodeName.toLowerCase() === tagName.toLowerCase()) { |
| 216 | children.push(node); |
| 217 | } |
| 218 | node = node.nextSibling; |
| 219 | } |
| 220 | |
| 221 | return children; |
| 222 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…