LearnNewsExamplesServices
Frontmatter
id8609
titleAdd Fragment Helper Methods to DeltaUpdates
stateClosed
labels
enhancementaicore
assigneestobiu
createdAtJan 13, 2026, 7:36 PM
updatedAtJan 13, 2026, 7:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/8609
authortobiu
commentsCount1
parentIssue8601
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 7:49 PM

Add Fragment Helper Methods to DeltaUpdates

Closed v11.21.0 enhancementaicore
tobiu
tobiu commented on Jan 13, 2026, 7:36 PM

Add helper methods to Neo.main.DeltaUpdates to support Fragment start/end anchor resolution.

Methods to Add:

  1. getFragmentStart(id): Retrieves the start comment anchor for a Fragment ID.
  2. getFragmentSibling(startNode, index): Traverses siblings from the start anchor to find the reference node at a given logical index.
  3. 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.

tobiu added the enhancement label on Jan 13, 2026, 7:36 PM
tobiu added the ai label on Jan 13, 2026, 7:36 PM
tobiu added the core label on Jan 13, 2026, 7:36 PM
tobiu assigned to @tobiu on Jan 13, 2026, 7:39 PM
tobiu cross-referenced by #8611 on Jan 13, 2026, 7:41 PM
tobiu referenced in commit 99354e9 - "feat: Add Fragment helper methods to DeltaUpdates (#8609)" on Jan 13, 2026, 7:42 PM
tobiu referenced in commit 812ef05 - "feat: Add Fragment helper methods to DeltaUpdates (#8609) on Jan 13, 2026, 7:49 PM
tobiu
tobiu Jan 13, 2026, 7:49 PM

Input from Gemini 3 Pro:

✦ Added getFragmentStart, getFragmentSibling and getFragmentNodes helper methods. Verified via FragmentDomMove.spec.mjs. Usage in moveNode pending next ticket.

tobiu closed this issue on Jan 13, 2026, 7:49 PM
tobiu added parent issue #8601 on Jan 13, 2026, 7:49 PM