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

Function setValueForKnownAttribute

docs/index.js:4440–4453  ·  view source on GitHub ↗
(node, name, value)

Source from the content-addressed store, hash-verified

4438 }
4439}
4440function setValueForKnownAttribute(node, name, value) {
4441 if (null === value) node.removeAttribute(name);
4442 else {
4443 switch (typeof value) {
4444 case "undefined":
4445 case "function":
4446 case "symbol":
4447 case "boolean":
4448 node.removeAttribute(name);
4449 return;
4450 }
4451 node.setAttribute(name, "" + value);
4452 }
4453}
4454function setValueForNamespacedAttribute(node, namespace, name, value) {
4455 if (null === value) node.removeAttribute(name);
4456 else {

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…