-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanitizer removing inline child combinator CSS selectors #483
Comments
Unfortunately, this was introduced through the fix for GHSA-43cp-6p3q-2pc4 Fixed in 8.0.744 and 8.1.745-beta. |
Thanks for the quick fix, although I'm still not sure it's 100% correct? The output for v8.0.744 is now
but this isn't valid CSS - if you paste this in an HTML doc (as below) and view it in a browser, the style doesn't have any effect.
|
I was overeager in CSS escaping To be honest, I don't understand why |
The latest version of HtmlSanitizer v8.0.723 is generating different sanitized output to the previous version v8.0.718 - it is removing inline child combinator CSS selectors. Is this intended?
See sample .NET 6 code below using v8.0.723
The output for v8.0.723 is:
The output for v8.0.718 is:
The text was updated successfully, but these errors were encountered: