Skip to content
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

allowAttributes("style").globally() shouldn't imply allowStyling() - Regression with 2024 version #334

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

subbudvk
Copy link
Contributor

@subbudvk subbudvk commented Apr 11, 2024

This recent breaking changes

  • Forces validating global style content with CSSSchema - Earlier we had better options seperately
    allowAttributes("style").globally() - doesn't sanitize, allowStyling() - did sanitize.
  • make disallowAttribute("style").globally() now does allowStyling() as pointed out in the PR by someone.

@mikesamuel @jmanico : Can you kindly have a look as we are facing issues after 2024 version upgrade.

Fixes #331

@subbudvk subbudvk changed the title allowAttributes("style").globally() shouldn't imply allowStyling() - Regression with 2024 verion allowAttributes("style").globally() shouldn't imply allowStyling() - Regression with 2024 version Apr 11, 2024
@subbudvk
Copy link
Contributor Author

@mikesamuel

@csware
Copy link
Contributor

csware commented Apr 22, 2024

Please also add test cases for the cases that must not happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue in 2024x version with styles
2 participants