Add text node support to FragmentInstance operations (#35630)
This PR adds text node support to FragmentInstance operations, allowing fragment refs to properly handle fragments that contain text nodes (either mixed with elements or text-only). Not currently adding/removing new text nodes as we don't need to track them for events or observers in DOM. Will follow up on this and with Fabric support. ## Support through parent element - `dispatchEvent` - `compareDocumentPosition` - `getRootNode` ## Support through Range API - `getClientRects`: Uses Range to calculate bounding rects for text nodes - `scrollIntoView`: Uses Range to scroll to text node positions directly ## No support - `focus`/`focusLast`/`blur`: Noop for text-only fragments - `observeUsing`: Warns for text-only fragments in DEV - `addEventListener`/`removeEventListener`: Ignores text nodes, but still works on Fragment level through `dispatchEvent` DiffTrain build for [875b06489f4436125613535dfe0833cd12a500f9](https://github.com/facebook/react/commit/875b06489f4436125613535dfe0833cd12a500f9)
J
jackpope committed
c6e98759a7d0cf3860434c2a08b4e50177d23f28
Parent: d83a7d2