diff --git a/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js b/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js index af93760ccfcc9..cea03b73b59d5 100644 --- a/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js +++ b/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js @@ -780,7 +780,7 @@ const supportsMoveBefore = // $FlowFixMe[prop-missing]: We're doing the feature detection here. enableMoveBefore && typeof window !== 'undefined' && - typeof window.Node.prototype.moveBefore === 'function'; + typeof window.Element.prototype.moveBefore === 'function'; export function appendChild( parentInstance: Instance,