MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / elByTag

Function elByTag

src/background/sync/s3.js:120–123  ·  view source on GitHub ↗
(parent, tag)

Source from the content-addressed store, hash-verified

118 return r.length ? r : [...parent.getElementsByTagName(tag)];
119 }
120 function elByTag(parent, tag) {
121 return parent.getElementsByTagNameNS(ns, tag)[0]
122 || parent.getElementsByTagName(tag)[0];
123 }
124
125 const items = elsByTag(doc, 'Contents').map((el) => {
126 const key = elByTag(el, 'Key')?.textContent || '';

Callers 1

parseListXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected