hoplon / demos

Example ClojureScript applications using hoplon
81 stars 27 forks source link

hoplon.svg does not support dom class #16

Closed LauraSempere closed 7 years ago

LauraSempere commented 9 years ago

According to demo example, if we pass a class to create a svg dom element, the class is not applied to the generated dom.

e.g.

(c/container
        :id "some-id"
        :class "some-class")

The result code is

<svg:svg id="some-id">...</svg:svg>
mynomoto commented 7 years ago

Hi, sorry about the delay responding this. You should use :svg/class instead of :class to get this working. I'm closing this, but feel free to reopen if the solution does not work.

Reference: