dillon1000/react

Commit

[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.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…