MCPcopy Create free account
hub / github.com/developit/undom / getAttributeNS

Method getAttributeNS

src/undom.js:128–131  ·  view source on GitHub ↗
(ns, name)

Source from the content-addressed store, hash-verified

126 attr.value = String(value);
127 }
128 getAttributeNS(ns, name) {
129 let attr = findWhere(this.attributes, createAttributeFilter(ns, name));
130 return attr && attr.value;
131 }
132 removeAttributeNS(ns, name) {
133 splice(this.attributes, createAttributeFilter(ns, name));
134 }

Callers 1

getAttributeMethod · 0.95

Calls 2

findWhereFunction · 0.90
createAttributeFilterFunction · 0.90

Tested by

no test coverage detected