Closed bbugh closed 6 years ago
Thanks for reporting this! Certainly strange and undesirable behavior. I would certainly call this a bug. Looking into it now.
This appears to have been fixed in v2.1.0 by the introduction of Crass as the underlying CSS parser. Sorry for the delay in replying!
Hey @flavorjones keep up the good work !
I noticed that both text in the examples get stripped in Loofah 2.9.0, I suspect this line: https://github.com/flavorjones/loofah/blob/main/lib/loofah/html5/scrub.rb#L94
Is it intended ?
@aert Let's continue the conversation in #202
Given this fragment of HTML
When using Loofah to do any kind of stripping:
The span with the font-family that has a dash in it gets stripped, but the one without the dash does not:
If I arbitrarily add a dash to the second one:
It also gets scrubbed: