Skip to content

[feat]: DOM proxy for slot() structural changes#27

Closed
arielsalminen wants to merge 2 commits intofeature/slottablefrom
feature/slottable-extended
Closed

[feat]: DOM proxy for slot() structural changes#27
arielsalminen wants to merge 2 commits intofeature/slottablefrom
feature/slottable-extended

Conversation

@arielsalminen
Copy link
Copy Markdown
Member

@arielsalminen arielsalminen commented Apr 14, 2026

Summary

This is more of a POC and won’t make it to the official releases as such, but it adds DOM method proxying to the slot() introduced in #26. This allows JS frameworks to also add, remove and reorder children with Light DOM Primitive Components after projection, not just update values.

The PR itself adds a transparent proxy layer that intercepts insertBefore, appendChild, removeChild and textContent on the host element and redirects them to the inner this.element.

Related to #9, #10, #24 and #26

@arielsalminen arielsalminen self-assigned this Apr 14, 2026
@arielsalminen arielsalminen added the enhancement New feature or request label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant