MCPcopy Create free account
hub / github.com/caseywebdev/react-list / setValueForNamespacedAttribute

Function setValueForNamespacedAttribute

docs/index.js:4454–4467  ·  view source on GitHub ↗
(node, namespace, name, value)

Source from the content-addressed store, hash-verified

4452 }
4453}
4454function setValueForNamespacedAttribute(node, namespace, name, value) {
4455 if (null === value) node.removeAttribute(name);
4456 else {
4457 switch (typeof value) {
4458 case "undefined":
4459 case "function":
4460 case "symbol":
4461 case "boolean":
4462 node.removeAttribute(name);
4463 return;
4464 }
4465 node.setAttributeNS(namespace, name, "" + value);
4466 }
4467}
4468function getToStringValue(value) {
4469 switch (typeof value) {
4470 case "bigint":

Callers 1

setPropFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…