Skip to content

Enhance shadow DOM support in API and examples: - #249

Open
SamuelHerrera wants to merge 1 commit into
simonwep:masterfrom
SamuelHerrera:shadow-root-support
Open

SamuelHerrera wants to merge 1 commit into
simonwep:masterfrom
SamuelHerrera:shadow-root-support

Conversation

@SamuelHerrera

Copy link
Copy Markdown
  • Updated the API reference to allow document to accept both Document and ShadowRoot.
  • Added notes on handling events and element creation in shadow contexts.

Note: Some of the changes where LLM generated, but I manually edited and tested it.

image

@SamuelHerrera
SamuelHerrera deleted the shadow-root-support branch July 27, 2025 21:50
@SamuelHerrera
SamuelHerrera restored the shadow-root-support branch July 27, 2025 21:52
@SamuelHerrera SamuelHerrera reopened this Jul 27, 2025
@simonwep

Copy link
Copy Markdown
Owner

Hey! Thank you for this PR, I gave it a quick rebase (had to squash because it was so old, sorry for that) and will have a look at it. It adds a lot of complexity which is unfortunate... I'm not sure if it's worth introducing this as a feature at the cost of so many more LOC to handle both shadow roots and "normal" documents.

This branch has not been deployed

No deployments
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.

2 participants