HtmlSanitizer icon indicating copy to clipboard operation
HtmlSanitizer copied to clipboard

CSS styles stripping rgb when capitalized

Open cnoblests opened this issue 3 years ago • 1 comments

I wasn't sure if this is an issue with the sanitizer or with AngleSharp, but since I'm experiencing it via your library, I figured it would be better to open this here. If you have an inline style on a node with an RGB or(RGBA) color defined, and RGB or RGBA are capitalized, the style is stripped.

For an example, see here: https://dotnetfiddle.net/Mbf1RY

cnoblests avatar Mar 18 '22 21:03 cnoblests

This is indeed an issue within AngleSharp.CSS. I've reported it here: https://github.com/AngleSharp/AngleSharp.Css/issues/109

mganss avatar Mar 21 '22 10:03 mganss

This has been fixed in AngleSharp.Css 0.17.0.

mganss avatar Aug 03 '23 11:08 mganss