* True if the supplied DOM node is a valid node element. * * @param {?DOMElement} node The candidate DOM node. * @return {boolean} True if the DOM is a valid DOM node. * @internal
(node)
| 17585 | * @internal |
| 17586 | */ |
| 17587 | function isValidContainer(node) { |
| 17588 | return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable ')); |
| 17589 | } |
| 17590 | |
| 17591 | function getReactRootElementInContainer(container) { |
| 17592 | if (!container) { |
no outgoing calls
no test coverage detected