Skip to content

CustomElementRegistry: initialize() with DocumentFragment and Document #51976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

annevk
Copy link
Member

@annevk annevk commented Apr 14, 2025

No description provided.

@tbroyer
Copy link
Contributor

tbroyer commented Apr 14, 2025

Is it expected that one could use window.customElements/document.customElementRegistry to initialize() another document?

let doc = new Document();
customElements.initialize(doc);

Should this be tested? (whichever the expected outcome)

@annevk
Copy link
Member Author

annevk commented Apr 14, 2025

Yeah that should work. Feel free to push another commit to this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants