MCPcopy
hub / github.com/apache/echarts / getChildByTagName

Function getChildByTagName

extension-src/dataTool/gexf.ts:193–209  ·  view source on GitHub ↗
(parent, tagName)

Source from the content-addressed store, hash-verified

191}
192
193function getChildByTagName(parent, tagName) {
194 let node = parent.firstChild;
195
196 while (node) {
197 if (
198 node.nodeType !== 1
199 || node.nodeName.toLowerCase() !== tagName.toLowerCase()
200 ) {
201 node = node.nextSibling;
202 }
203 else {
204 return node;
205 }
206 }
207
208 return null;
209}
210
211function getChildrenByTagName(parent, tagName) {
212 let node = parent.firstChild;

Callers 3

parseFunction · 0.85
parseNodesFunction · 0.85
parseEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…