mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
be952bbae2715fc2124cccfe2de2710b9b3fa24a
The root instance doesn't have a canonical property so we were not
returning a public instance that we can call compareDocumentPosition on
when a Fragment had no other host parent in Fabric. In this case we need
to get the ReactNativeElement from the ReactNativeDocument.
I've also added test coverage for this case in DOM for consistency,
though it was already working there because we use DOM elements as root.
This same test will be copied to RN using Fantom.
DiffTrain build for [83c88ad470](https://github.com/facebook/react/commit/83c88ad470d680060f807ef81ed4c14b3b71fd3b)
react-fbsource-import
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%