svg
svg copied to clipboard
Add classList to Svg.Attributes
In reference to https://github.com/elm-lang/svg/issues/17
Would love to see this merged.
The issue lives now here https://github.com/elm/svg/issues/17
What is the problem of using Html.Attributes.classList
for this? Svg
and Html
are actually the same type VirtualDom.Node
.
It's the Elm type system - Svg.Attribute
is not the same as Html.Attribute
It's the Elm type system -
Svg.Attribute
is not the same asHtml.Attribute
They both are aliases for VirtualDom.Attribute
.
If I remember correctly, there was an issue during run-time then.
If I remember correctly, there was an issue during run-time then.
Ah, I believe you are right here, in Html it sets propery className, which won't work on svg element, should use setAttribute.
Arriving here via web-search, I agree that a similar classList
capability would be nice to have.