-
Notifications
You must be signed in to change notification settings - Fork 216
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
Edited CssSchema to preserve hsl() and hsla() functions #214
Conversation
#206) * Do not lcase element or attribute names that match SVG or MathML names exactly > Currently all names are converted to lowercase which is ok when > you're using it for HTML only, but if there is an SVG image nested > inside the HTML it breaks. For example, when `viewBox` attribute is > converted to `viewbox` the image is not displayed correctly. This commit splits *HtmlLexer*.*canonicalName* into variants which preserve items on whitelists derived from the SVG and MathML specifications, and adjusts callers of *canonicalName* to use the appropriate variant. Fixes #182 * add unittests for mixed-case SVG names
I believe the CI failures are spurious, due to a vulnerability in Junit which does not affect us
but we have vulnerability scan checks in our CI just to be safe. I'll update the JUnit version so a pull from upstream should get the CI running green. |
* Change `.and` when combining two policies to respect explicit `skipIfEmpty` decisions. | ||
* HTML entity decoding now follows HTML standard rules about when a semicolon is optional. | ||
[Fixes #193](https://github.com/OWASP/java-html-sanitizer/issues/193) | ||
* Fix table formatting [#137](https://github.com/OWASP/java-html-sanitizer/issues/137) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the edits seem to be merge edits which makes this hard to review. Did you have a branch that was pointed at an older version? Can you reapply your patch to a new branch derived from HEAD?
Fixed issue #212