mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Fix moveBefore feature detection (#32087)
`moveBefore` was moved to the `ParentNode` mixin as per
https://github.com/whatwg/dom/pull/1307#discussion_r1881981120 _(and was
committed in
3f3e94c5be)_
As a result, its existence can no longer be checked on `Node.prototype`
but must be checked in `Element.prototype`
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user