MCPcopy Index your code
hub / github.com/microsoft/SandDance / updateDOMProperties

Function updateDOMProperties

docs/external/js/react-dom.development.js:5959–5975  ·  view source on GitHub ↗
(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag)

Source from the content-addressed store, hash-verified

5957 }
5958
5959 function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
5960 // TODO: Handle wasCustomComponentTag
5961 for (var i = 0; i < updatePayload.length; i += 2) {
5962 var propKey = updatePayload[i];
5963 var propValue = updatePayload[i + 1];
5964
5965 if (propKey === STYLE) {
5966 setValueForStyles(domElement, propValue);
5967 } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
5968 setInnerHTML(domElement, propValue);
5969 } else if (propKey === CHILDREN) {
5970 setTextContent(domElement, propValue);
5971 } else {
5972 setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
5973 }
5974 }
5975 }
5976
5977 function createElement(type, props, rootContainerElement, parentNamespace) {
5978 var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML

Callers 1

updatePropertiesFunction · 0.85

Calls 3

setValueForStylesFunction · 0.85
setTextContentFunction · 0.85
setValueForPropertyFunction · 0.85

Tested by

no test coverage detected