-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to create svg elements with CSS selectors #217
Comments
That's because that selector syntax uses It's not a problem with It should work if you use the h('line', {
attrs: {x1: '0', y1: '0', x2: '100', y2: '0'},
class: {'form-field-underline-default': true}
}) |
IMHO a selector should just work everywhere don't u think? This is an implementation detail that as a consumer of the library, I shouldn't be concerned about. I'd be happy to send a PR for it. |
Thank you for submitting the bug.
I see your point. It's a bit odd that
Go ahead 👍 The relevant code is here snabbdom.ts#L94. |
@paldepind If nothing moves, I'd like to try a PR about this. I just have a couple of questions:
Thank you for any clarification! |
@caesarsol send it :) |
Hello, I have the PR ready but I'd like some reassurance about substituting I think it's even more consistent being the phase of creation of a DOM element, but I'm not an expert on raw DOM manipulation... |
@caesarsol using |
Ok thanks! Sending the PR in a few hours. |
Something like this never works —
ERROR:
The text was updated successfully, but these errors were encountered: