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

Handle boolean attributes like hiccup does. #11

Merged
merged 1 commit into from Sep 7, 2012

Conversation

emezeske
Copy link
Contributor

Hiccup treats attributes with boolean values specially: it drops attributes like {:foo false}, and rewrites attributes like {:foo true} to foo="foo". This pullreq changes crate to behave the same way.

This is necessary for things like select-options to work correctly, as they are implemented with the expectation of this special behavior.

Note that this pullreq supersedes the more short-sighted #9 , which fixed the symptom in select-options, instead of the underlying problem.

@emezeske
Copy link
Contributor Author

emezeske commented Jul 5, 2012

Anything I could do to make this more attractive to merge? It fixes a rather uncomfortable incompatibility with Hiccup.

ibdknox added a commit that referenced this pull request Sep 7, 2012
Handle boolean attributes like hiccup does.
@ibdknox ibdknox merged commit c1dcdfa into ibdknox:master Sep 7, 2012
@semperos semperos mentioned this pull request May 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants