enlive icon indicating copy to clipboard operation
enlive copied to clipboard

Fix hiccup-like rendering of boolean attrs

Open jcromartie opened this issue 10 years ago • 1 comments

When rendering elements, such as checkboxes, drop-down options, or other inputs, Hiccup will simply omit attributes that are false or nil.

The current state of html renders these attributes like checked="false" which leads to browsers interpreting it as actually being checked.

This commit updates the html function to be more compatible with Hiccup, and allows you to use Hiccup's hiccup.form namespace with Enlive.

jcromartie avatar Jun 12 '14 18:06 jcromartie

Thinking and testing needed: impact on existing apps?

fdserr avatar Jul 23 '15 21:07 fdserr