Browse files

Fixed corner case which produced harmless but incorrect output if the…

… special case attribute value is False
  • Loading branch information...
clsdaniel committed Aug 4, 2012
1 parent fb00eac commit 38a4505b89b232b8283e675c514d040750b2e516
Showing with 5 additions and 2 deletions.
  1. +5 −2 tw2/core/
@@ -6,6 +6,9 @@
def htmlbools(v):
attrs = copy(v)
for key in filter(lambda k: k in _BOOLEAN_ATTRS and attrs[k], attrs.keys()):
attrs[key] = key
for key in filter(lambda k: k in _BOOLEAN_ATTRS, attrs.keys()):
if attrs[key]:
attrs[key] = key
attrs[key] = None
return attrs

0 comments on commit 38a4505

Please sign in to comment.