(type, props, rootContainerInstance, hostContext, internalInstanceHandle)
| 7594 | selectionInformation = null; |
| 7595 | } |
| 7596 | function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { |
| 7597 | var parentNamespace; |
| 7598 | |
| 7599 | { |
| 7600 | // TODO: take namespace into account when validating. |
| 7601 | var hostContextDev = hostContext; |
| 7602 | validateDOMNesting(type, null, hostContextDev.ancestorInfo); |
| 7603 | |
| 7604 | if (typeof props.children === 'string' || typeof props.children === 'number') { |
| 7605 | var string = '' + props.children; |
| 7606 | var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type); |
| 7607 | validateDOMNesting(null, string, ownAncestorInfo); |
| 7608 | } |
| 7609 | |
| 7610 | parentNamespace = hostContextDev.namespace; |
| 7611 | } |
| 7612 | |
| 7613 | var domElement = createElement(type, props, rootContainerInstance, parentNamespace); |
| 7614 | precacheFiberNode(internalInstanceHandle, domElement); |
| 7615 | updateFiberProps(domElement, props); |
| 7616 | return domElement; |
| 7617 | } |
| 7618 | function appendInitialChild(parentInstance, child) { |
| 7619 | parentInstance.appendChild(child); |
| 7620 | } |
no test coverage detected