allowAttributes("style").globally() shouldn't imply allowStyling() - Regression with 2024 version - #334
allowAttributes("style").globally() shouldn't imply allowStyling() - Regression with 2024 version#334subbudvk wants to merge 2 commits into
Conversation
|
Please also add test cases for the cases that must not happen. |
9bb458a to
f40152f
Compare
|
Decision: we are not going to take this, and I want to be straightforward about why. Before #218, For the underlying need, "our users rely on CSS the default schema does not allow", the supported path is to widen the schema rather than bypass it: .allowStyling(CssSchema.union(CssSchema.DEFAULT,
CssSchema.withProperties(Arrays.asList("grid-template-columns", ...))))and per-element styling is being designed in #381. If a property you need cannot be expressed in |
This recent breaking changes
allowAttributes("style").globally() - doesn't sanitize, allowStyling() - did sanitize.
@mikesamuel @jmanico : Can you kindly have a look as we are facing issues after 2024 version upgrade.
Fixes #331