Replies: 1 comment
|
Ok so to clarify this isn't one you want to author with Solid Element but using an existent webcomponent from else. There is a way to do it with Solid Element but it's a bit complicated. But assuming that isn't what you are asking for. We don't do For example: <p is="word-count"/>Compiles to roughly: const template = document.createElement("template")
template.innerHTML = `<p is="word-count"/>`
const p = template.content.firstChild.cloneNode(true);You can see what I mean here by looking at the output tab: https://playground.solidjs.com/?hash=-1653681417&version=1.2.5 Maybe a reproduction would help. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I wanted to use a customized built-in element inside a SolidJS project, but it's not working. I'm thinking this is relevant here:
I'm guessing Solid doesn't pass the second argument to
createElement. I think it would be nice if using these was supported.All reactions