Skip to content
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

<Dynamic> can't create customized built-in elements #2413

Open
danieltroger opened this issue Jan 27, 2025 · 0 comments
Open

<Dynamic> can't create customized built-in elements #2413

danieltroger opened this issue Jan 27, 2025 · 0 comments
Labels
webcomponents related to solid-element, custom elements, shadow dom, or other web component related features

Comments

@danieltroger
Copy link

danieltroger commented Jan 27, 2025

Describe the bug

I'd like to extend the <a> element and create such an extended element using <Dynamic> in solid-js, but right now that's not possible without manually using document.createElement("a", { is: "customized-link" })

Your Example Website or App

https://playground.solidjs.com/anonymous/790f2888-36f6-40fb-9527-0cd30edbde60

Steps to Reproduce the Bug or Issue

  1. Go to the playground link
  2. Check the console for "element in dom"
  3. see no logs

Expected behavior

  1. Go to the playground link
  2. Check the console for "element in dom"
  3. See an element being logged

So basically I'd want the is property to be passed down when <Dynamic> calls document.createElement (see mdn docs)

Screenshots or Videos

No response

Platform

Latest Firefox on macOS

Additional context

No response

@ryansolid ryansolid added the webcomponents related to solid-element, custom elements, shadow dom, or other web component related features label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webcomponents related to solid-element, custom elements, shadow dom, or other web component related features
Projects
None yet
Development

No branches or pull requests

2 participants