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

Function elsByTag

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

Source from the content-addressed store, hash-verified

114
115 // Some S3-compatible services omit the AWS namespace; fall back to no-namespace.
116 function elsByTag(parent, tag) {
117 const r = [...parent.getElementsByTagNameNS(ns, tag)];
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];

Callers 1

parseListXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected