LearnNewsExamplesServices
Frontmatter
id8613
titleUpdate DeltaUpdates.insertNodeBatch to support Fragments
stateClosed
labels
enhancementaicore
assigneestobiu
createdAtJan 13, 2026, 7:54 PM
updatedAtJan 13, 2026, 8:18 PM
githubUrlhttps://github.com/neomjs/neo/issues/8613
authortobiu
commentsCount1
parentIssue8601
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 8:18 PM

Update DeltaUpdates.insertNodeBatch to support Fragments

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

Update Neo.main.DeltaUpdates.insertNodeBatch to correctly resolve parent and sibling nodes when the target is a Neo.container.Fragment.

Changes:

  1. Check if parentNode is null (logical parent) for the batch target.
  2. If null, use getFragmentStart(parentId) to find the anchor.
  3. Resolve parentNode from the anchor.
  4. Resolve siblingRef using getFragmentSibling(startNode, index).
  5. Ensure the DocumentFragment containing the batch is inserted at the correct physical position.
tobiu added the enhancement label on Jan 13, 2026, 7:54 PM
tobiu added the ai label on Jan 13, 2026, 7:54 PM
tobiu added the core label on Jan 13, 2026, 7:54 PM
tobiu assigned to @tobiu on Jan 13, 2026, 8:02 PM
tobiu added parent issue #8601 on Jan 13, 2026, 8:03 PM
tobiu referenced in commit 8fcd7a6 - "feat: Update DeltaUpdates.insertNodeBatch to support Fragments (#8613)" on Jan 13, 2026, 8:17 PM
tobiu
tobiu Jan 13, 2026, 8:17 PM

Input from Gemini 3 Pro:

✦ Updated insertNodeBatch to support Fragments.

  • Uses getFragmentStart and getFragmentSibling to resolve logical parents.
  • Inserts the batch DocumentFragment at the correct physical location relative to Fragment anchors.
  • Verified with FragmentDomInsertBatch.spec.mjs (DomApiRenderer mode).
tobiu closed this issue on Jan 13, 2026, 8:18 PM