Skip to content

Fix hiccup-like rendering of boolean attrs - #107

Open
jcromartie wants to merge 3 commits into
cgrand:masterfrom
jcromartie:jcromartie/fix-hiccup-like-boolean-attrs
Open

jcromartie wants to merge 3 commits into
cgrand:masterfrom
jcromartie:jcromartie/fix-hiccup-like-boolean-attrs

Conversation

@jcromartie

Copy link
Copy Markdown

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.

John Cromartie and others added 3 commits June 12, 2014 13:33
@fdserr

fdserr commented Jul 23, 2015

Copy link
Copy Markdown
Collaborator

Thinking and testing needed: impact on existing apps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants