plumatic / dommy

A tiny ClojureScript DOM manipulation and event library
759 stars 74 forks source link

:style attribute chokes on string value #33

Closed mva closed 11 years ago

mva commented 11 years ago

I'm stumbling across this when I am taking HTML generated by existing code and run it through template/node. Input like [... {:style "background-color: lime"} ...] leads to an exception along the lines of name not supported, because attr/style-str assumes that its input is always a map.

If it's ok with you I can provide a pull request that changes style-str to return its argument unchanged if it is a string.