Some elements are inferred to be SVG elements (based on their name) and instantiated using createElementNS and the proper SVG namespace.
A better approach could be to rely on the presence of a keyword namespace whose value would allow to access the proper namespace (via multimethod?). Hiccup will ignore the namespace when rendering so it's a safe option.
Some elements are inferred to be SVG elements (based on their name) and instantiated using
createElementNS
and the proper SVG namespace.A better approach could be to rely on the presence of a keyword namespace whose value would allow to access the proper namespace (via multimethod?). Hiccup will ignore the namespace when rendering so it's a safe option.
e.g.