plumatic / dommy

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

create-element accepts attributes #88

Closed loganlinn closed 4 years ago

loganlinn commented 9 years ago

Common use-case of create-element is followed by set-attr!. This adds an optional argument to create-element to pass a map of attributes to be set on the returned element.

BREAKING API change: create-element no longer creates namespaced elements. A separate create-element-ns function has been created to explicitly create these.