(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag)
| 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 |
no test coverage detected