hiccup icon indicating copy to clipboard operation
hiccup copied to clipboard

Namespaced keywords can cause multiple attributes on an element

Open SVMBrown opened this issue 8 years ago • 0 comments

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.

SVMBrown avatar May 04 '17 19:05 SVMBrown