weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

Namespaced keywords can cause multiple attributes on an element #145

Open SVMBrown opened 7 years ago

SVMBrown commented 7 years ago

I was investigating handling of namespaced keywords in hiccup and reagent and stumbled across the following behaviour:

(html [:div {::id "abc" :id "123" :my.ns/id "xyz"}])
;;=> "<div id=\"123\" id=\"abc\" id=\"xyz\"></div>"

Not entirely sure what behaviour should be, but for my use case I was hoping that all namespaced keywords would not be included in the final rendering. Figured I would mention this edge case in case it is relevant.