Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fiber]
getHoistableRoot()
should account for Document containers (#…
…32321) While modern DOM implementations all support getRootNode if you are running React in a runtime which does not the fallback logic which uses `.ownerDocument` works everywhere except when the container is a Document itself. This change corrects this by returning the container intsance if it is a Document type.
- Loading branch information