a6922ce seems to have had the effect of scrubbing valueless attributes even if they are in SafeList. For example, even after adding controls to the SafeList with:
Loofah::HTML5::SafeList::ALLOWED_ATTRIBUTES.add('controls')
The controls attribute will be removed from video tags like the following:
<video ... controls>...</video>
<video ... controls="">...</video>
But not from the following:
<video ... controls="true">...</video>
However, just having controls without a value seems to be valid HTML5.
Is this intended behaviour or a bug?
a6922ce seems to have had the effect of scrubbing valueless attributes even if they are in
SafeList. For example, even after addingcontrolsto theSafeListwith:The
controlsattribute will be removed from video tags like the following:But not from the following:
However, just having
controlswithout a value seems to be valid HTML5.Is this intended behaviour or a bug?