Closed baloe closed 2 years ago
Other users had requested that attribute=None
means it should be interpreted the same as not present at all (same as deleted). See previous issues.
As above, attribute=True
results in rendering as attribute="attribute"
, and the HTML spec enforces that to mean the same thing a present with no value.
It seems acceptable to also have attributes without values, e.g. the
controls
attribute for the video tag: https://www.w3schools.com/html/html5_video.aspIs this possible with dominate? If so I am unable to figure out how. If not, how about adding a rule that
attribute=None
is rendered as an attribute without a value? Right nowattribute=None
seems to be equivalent toattribute=False
which simply prevents the attribute from being rendered at all.