I noticed a difference when parsing and removing CSS styles between Bleach 4.x and 5.x.
This is probably related to #633 resp. #648.
Before, styles like list-style: url(https://www.example.com) seem to have been stripped even if list-style was in the styles list.
Recent Bleach versions (5.x) do keep this list-style style and this seems correct to me.
python and bleach versions (please complete the following information):
I noticed a difference when parsing and removing CSS styles between Bleach 4.x and 5.x. This is probably related to #633 resp. #648.
Before, styles like
list-style: url(https://www.example.com)
seem to have been stripped even iflist-style
was in thestyles
list. Recent Bleach versions (5.x) do keep thislist-style
style and this seems correct to me.python and bleach versions (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I think the current behavior is correct but I just want to get sure and that I'm not misunderstanding or misusing the new CSS sanitizer.
So, is the previous behavior more or less a bug in the old CSS sanitizer and has been fixed implicitly by the new one?