Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hiccup-like rendering of boolean attrs #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jcromartie
Copy link

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
Copy link
Collaborator

fdserr commented Jul 23, 2015

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