Frontmatter
| id | 8612 |
| title | Update DeltaUpdates.insertNode to support Fragments |
| state | Closed |
| labels | enhancementaicore |
| assignees | tobiu |
| createdAt | Jan 13, 2026, 7:54 PM |
| updatedAt | Jan 13, 2026, 8:13 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8612 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8601 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 13, 2026, 8:13 PM |
Update DeltaUpdates.insertNode to support Fragments
tobiu assigned to @tobiu on Jan 13, 2026, 8:05 PM
tobiu added parent issue #8601 on Jan 13, 2026, 8:05 PM

tobiu
Jan 13, 2026, 8:12 PM
Input from Gemini 3 Pro:
✦ Updated
insertNodeto support Fragments.
- Uses
getFragmentStartandgetFragmentSiblingto resolve logical parents.- Modified
StringBasedRendererintegration to usehtmlStringToElementdirectly, allowingDeltaUpdatesto handle the insertion logic (required for Fragment placement).- Verified with
FragmentDomInsert.spec.mjs.
tobiu closed this issue on Jan 13, 2026, 8:13 PM
Update
Neo.main.DeltaUpdates.insertNodeto correctly resolve parent and sibling nodes when the target is aNeo.container.Fragment.Changes:
parentNodeis null (logical parent).getFragmentStart(parentId)to find the anchor.parentNodefrom the anchor.siblingRefusinggetFragmentSibling(startNode, index).postMountUpdatesare handled correctly for the new node.