-
Notifications
You must be signed in to change notification settings - Fork 5
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
Some empty attributes are done wrong #119
Comments
Uhm, Lines 25 to 51 in 293d19c
I think that the expected behavior is to remove the boolean attribute if the value is empty. |
Boolean attributes are true when they are present, regardless of their value. But it should be ok to remove the asignment part, like in maurits example. |
Yeah, I have been thinking as well about this. |
So I guess if you have this in your template, the template works fine:
But then
And then zope.pagetemplate or Chameleon or whatever somehow does not know how to apply the That is not nice, but not really sure where to fix this in code. And it can easily be fixed in the template itself: there is no need to have either I guess it is fine to close this issue. |
It seems to me that chameleon does not behave properly with boolean attributes:
|
See plone/plone.app.z3cform#162 (comment)
The text was updated successfully, but these errors were encountered: