Skip to content

Interpolation now renders text nodes. - #95

Merged
koculu merged 1 commit into
mainfrom
spanless-interpolation
Jun 15, 2026
Merged

koculu merged 1 commit into
mainfrom
spanless-interpolation

Conversation

@koculu

@koculu koculu commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Removes generated interpolation <span> elements from the rendered DOM while preserving the existing fast interpolation binding pipeline.

Changes

  • Keep interpolation preprocessing based on generated internal r-text spans for fast element-only directive collection.
  • Mark generated interpolation spans with internal r-rgi.
  • Update r-text so marked interpolation spans are replaced with direct Text nodes during mount.
  • Move bind cleanup data from the generated span to the replacement text node so reactivity and unbind still work correctly.
  • Preserve normal user-authored r-text elements.
  • Add replaceChild support to minidom and switch interpolation span replacement to use it.
  • Update tests that previously asserted generated span output.
  • Remove stale docs wording that described mixed interpolation as generated <span r-text> nodes.

@koculu
koculu merged commit 1a5ff66 into main Jun 15, 2026
1 check passed
@koculu
koculu deleted the spanless-interpolation branch June 15, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant