Skip to content

Namespaced keywords can cause multiple attributes on an element #145

@SVMBrown

Description

@SVMBrown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions