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. |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions