-
Notifications
You must be signed in to change notification settings - Fork 26.2k
html_sanitizer: add id and style html attrs as allowed to avoid dropping of them by sanitizer #45274
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
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
8bd1aa6 to
f2a7fe9
Compare
2252c52 to
b10cf47
Compare
…ing of them by sanitizer The provided change is for leaving html attributes style and id if they don't contain potentially dangerous code which could be executed to make some xss attacks, so as the result - a valid html content will be received with styling when a string has been sanitized
|
@AndrewKushnir , does smb plan to pick it up for review? |
|
@amaestr0 it is not clear to me what is the motivation for this change. What is the problem that you are trying to address? |
@pkozlowski-opensource have you read the related issue an it's description? |
@amaestr0 sure, I'm assuming that you are referring to #45270. But this is where the confusion starts. The #45270 mentions the
I'm fine if we focus on the I'm going to close this PR for now as there is lots of noise going on here already. If we are to do changes to the Moving the discussion back to #45270 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |


PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: 45270
#45270
What is the new behavior?
style and id attrs should be kept in html security context but sanitized inside.
Does this PR introduce a breaking change?
Other information