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
node() does not support namespacing for SVG elements #49
Comments
The reason We also could add @gordonbrander Do you have any interest in writing a patch for this ? |
Happy to write a patch. I lean toward having an svg() function, so you don't have to set the namespace manually. Either that, or in node(), check for svg keys like "svg", "circle" and set namespace "magically" for these.
Do you have a preference on direction?
|
You would have to pass namespace somewhere as that's what VirtualDOM implementation would expect.
This seems like an overkill to me.
Here is what I would suggest:
One way or another we would also have to do following:
I personally lean towards first option because:
I might be missing something and can be convinced to go a different route. |
Latest release introduced |
The node function interface used by Reflex and Reflex drivers does not allow setting a namespace.
virtual-dom
and ourVirtualNode
class both support namespaces via anamespace
property. (I don't really care about namespaces from an aesthetic standpoint, but they are required forsvg
elements to work).The text was updated successfully, but these errors were encountered: