setValueForNamespacedAttribute() — react Function Reference
Architecture documentation for the setValueForNamespacedAttribute() function in DOMPropertyOperations.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 442618bc_3428_a2b9_4084_a722c28117bc["setValueForNamespacedAttribute()"] 390123a6_56c3_29ed_a331_44deb86078d6["DOMPropertyOperations.js"] 442618bc_3428_a2b9_4084_a722c28117bc -->|defined in| 390123a6_56c3_29ed_a331_44deb86078d6 5a792874_dbaf_1dd0_9e62_d6a16580e0b5["setProp()"] 5a792874_dbaf_1dd0_9e62_d6a16580e0b5 -->|calls| 442618bc_3428_a2b9_4084_a722c28117bc style 442618bc_3428_a2b9_4084_a722c28117bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-dom-bindings/src/client/DOMPropertyOperations.js lines 161–188
export function setValueForNamespacedAttribute(
node: Element,
namespace: string,
name: string,
value: mixed,
) {
if (value === null) {
node.removeAttribute(name);
return;
}
switch (typeof value) {
case 'undefined':
case 'function':
case 'symbol':
case 'boolean': {
node.removeAttribute(name);
return;
}
}
if (__DEV__) {
checkAttributeStringCoercion(value, name);
}
node.setAttributeNS(
namespace,
name,
enableTrustedTypesIntegration ? (value: any) : '' + (value: any),
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does setValueForNamespacedAttribute() do?
setValueForNamespacedAttribute() is a function in the react codebase, defined in packages/react-dom-bindings/src/client/DOMPropertyOperations.js.
Where is setValueForNamespacedAttribute() defined?
setValueForNamespacedAttribute() is defined in packages/react-dom-bindings/src/client/DOMPropertyOperations.js at line 161.
What calls setValueForNamespacedAttribute()?
setValueForNamespacedAttribute() is called by 1 function(s): setProp.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free