-
Notifications
You must be signed in to change notification settings - Fork 47.6k
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
SVG attributes set with no namespace #5734
Comments
I think this is the problem:
However it seems like (some?) namespaced properties are only taken into account when SVG elements are created inside cc @spicyj |
Presumably, the reason it works initially is because it is inside |
Related: #5061 (comment) |
This should work okay on master now since we use document.createElement(NS) for everything except server rendering. |
"This should work okay on master..." – awesome, thanks! My temporary workaround was to wrap those elements into |
Say we have a view rendering
<use xlinkHref="#id"/>
in a loop. First render displays all instances just fine, but newly appendeduse
's would not show. Also callinggetAttributeNS('http://www.w3.org/1999/xlink', 'href')
on them would returnnull
while returning#id
for initial nodes.Here is JSBin example with reproducible issue
The text was updated successfully, but these errors were encountered: