You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 10, 2026. It is now read-only.
html attributes can either be name/value pairs OR boolean attributes.
most boolean attributes can be handled by using the key as the value.
e.g. these two are the same
some boolean attributes aren't very well documented on how they're interpreted. for example, how schema.org uses itemscope (https://schema.org/docs/gs.html#microdata_itemscope_itemtype)
running this through bleach, we would get:
it would be great to allow bleach to somehow handle boolean attributes.
maybe accept a list of what should be kept as a key-only, and what should be handled as a
key="key"pairing.