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

Method setAttributeNS

src/undom.js:123–127  ·  view source on GitHub ↗
(ns, name, value)

Source from the content-addressed store, hash-verified

121 }
122
123 setAttributeNS(ns, name, value) {
124 let attr = findWhere(this.attributes, createAttributeFilter(ns, name));
125 if (!attr) this.attributes.push(attr = { ns, name });
126 attr.value = String(value);
127 }
128 getAttributeNS(ns, name) {
129 let attr = findWhere(this.attributes, createAttributeFilter(ns, name));
130 return attr && attr.value;

Callers 1

setAttributeMethod · 0.95

Calls 2

findWhereFunction · 0.90
createAttributeFilterFunction · 0.90

Tested by

no test coverage detected