Back to Daily Feed 
SolidJS 2.0 RC.9: Dynamic Elements Honor `xmlns` for SVG
Originally published on SolidJS Releases
View Original Article
Share this article:
Summary & Key Takeaways
dynamic()andDynamiccomponents now respect thexmlnsprop for elements like<a>,<script>,<style>, and<title>.- This resolves an issue where such tags were always created as HTML elements within an SVG tree.
- The
xmlnsattribute is read once, untracked, at element creation, then applied as an ordinary attribute. - Hydration is unaffected, claiming the parser-namespaced node.
- Types for
xmlnsare now accepted on these four specific tags.
Our Commentary
This is a pretty specific fix, but if you've ever wrestled with dynamic SVG elements in SolidJS, you know how frustrating namespace issues can be. It's good to see these edge cases getting ironed out in the RC phase. It makes the framework more robust for complex rendering scenarios.
View Original Article
Share this article: