Add helper methods to Neo.main.DeltaUpdates to support Fragment start/end anchor resolution.
Methods to Add:
getFragmentStart(id): Retrieves the start comment anchor for a Fragment ID.
getFragmentSibling(startNode, index): Traverses siblings from the start anchor to find the reference node at a given logical index.
getFragmentNodes(parentNode, id): Retrieves all nodes between a Fragment's start and end anchors (inclusive).
Why:
Required for Neo.container.Fragment support in the main thread renderer (DomApiRenderer and StringBasedRenderer integration in DeltaUpdates). These helpers allow DeltaUpdates to resolve "logical" parent IDs (Fragment IDs) to physical DOM locations.
Note:
This is a non-breaking addition. No existing logic will be modified in this step.
Add helper methods to
Neo.main.DeltaUpdatesto support Fragment start/end anchor resolution.Methods to Add:
getFragmentStart(id): Retrieves the start comment anchor for a Fragment ID.getFragmentSibling(startNode, index): Traverses siblings from the start anchor to find the reference node at a given logical index.getFragmentNodes(parentNode, id): Retrieves all nodes between a Fragment's start and end anchors (inclusive).Why: Required for
Neo.container.Fragmentsupport in the main thread renderer (DomApiRendererandStringBasedRendererintegration inDeltaUpdates). These helpers allowDeltaUpdatesto resolve "logical" parent IDs (Fragment IDs) to physical DOM locations.Note: This is a non-breaking addition. No existing logic will be modified in this step.