-
Notifications
You must be signed in to change notification settings - Fork 319
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
Mounting element to svg #908
Comments
This isn't directly possible because custom elements are currently in the HTML namespace, and can't be defined to be in the SVG namespace. See WICG/webcomponents#634 A workaround is to use |
I'm closing because there's really nothing we can do about this on the LitElement side. Please comment on the w3c/webcomponents issue to advocate for SVG-compatible custom elements. |
Thanks for getting back, makes sense. |
@justinfagnani Thank you for the |
@crlmahlberg Sorry, I don't know about that. Presumably it's the same for any |
@justinfagnani No, it happens to me specifically with a LitElement for some reason. Perhaps a shadow DOM issue? A |
Hi everyone!
I'd like to mount a lit-element to an existing svg:
I did not manage to get this to work. Instead, I had to move the svg tags to the render function of the element (and remove the svg tags from the html):
For context, see the d3-lit source, where I want to render an axis to an existing svg.
Is there any way to achieve this? Using
svg
instead ofhtml
from thelit-element
package did not work.The text was updated successfully, but these errors were encountered: