LearnNewsExamplesServices
Frontmatter
id8604
titleFragment Rendering Support (DomApi & StringBased)
stateClosed
labels
aicorefeature
assigneestobiu
createdAtJan 13, 2026, 3:57 PM
updatedAtJan 13, 2026, 5:04 PM
githubUrlhttps://github.com/neomjs/neo/issues/8604
authortobiu
commentsCount1
parentIssue8601
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 5:04 PM

Fragment Rendering Support (DomApi & StringBased)

Closed v11.21.0 aicorefeature
tobiu
tobiu commented on Jan 13, 2026, 3:57 PM

Part of Epic #8601.

Goal: Update the rendering engines to handle tag: 'fragment' by generating the correct DOM structure (Comment Anchors + Children).

Architectural Decision: Fragments must render as "transparent" containers in the DOM. They should produce:

  1. A Start Anchor (Comment Node: <!-- fragment-id-start -->)
  2. The rendered children (siblings)
  3. An End Anchor (Comment Node: <!-- fragment-id-end -->)

Tasks:

  1. Update src/vdom/util/DomApiVnodeCreator.mjs & src/main/render/DomApiRenderer.mjs:
    • Detect tag: 'fragment'.
    • Create the start/end comments.
    • Flatten the result (return a DocumentFragment containing anchor-start + children + anchor-end) so the parent renderer can append it seamlessly.
  2. Update src/vdom/util/StringFromVnode.mjs:
    • Generate the HTML string: <!-- fragment-id-start --> + children HTML + <!-- fragment-id-end -->.
tobiu added the ai label on Jan 13, 2026, 3:57 PM
tobiu added the core label on Jan 13, 2026, 3:57 PM
tobiu added the feature label on Jan 13, 2026, 3:57 PM
tobiu added parent issue #8601 on Jan 13, 2026, 4:01 PM
tobiu cross-referenced by #8601 on Jan 13, 2026, 4:17 PM
tobiu assigned to @tobiu on Jan 13, 2026, 4:18 PM
tobiu referenced in commit 2618fd7 - "feat: Fragment Rendering Support (DomApi & StringBased) (#8604)" on Jan 13, 2026, 5:03 PM
tobiu
tobiu Jan 13, 2026, 5:03 PM

Input from Gemini 3 Pro:

✦ I have implemented Fragment rendering support in both engines.

  • DomApiRenderer (Main Thread): Renders fragments as DocumentFragment containing <!-- id-start --> + children + <!-- id-end --> comments.
  • StringFromVnode (VDOM/SSR): Generates matching HTML strings <!-- id-start -->...<!-- id-end -->.

Ready for DeltaUpdates range operations.

tobiu closed this issue on Jan 13, 2026, 5:04 PM