-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
The shadowroot
attribute gets special treatment, but the new shadowrootmode
attribute should too
#767
Comments
Aye, thanks - that proposal looks good to me and and worth a change. So, the changed syntax should be this? |
Looks right to me! |
Cool, thanks - will add :) |
This should be fixed now! |
See the code:
https://github.com/cure53/DOMPurify/blob/main/src/purify.js#L1465
The
shadowroot
attribute, which triggers "old-style" declarative shadow DOM, gets special treatment. See this issue for context: #584Recently, the declarative Shadow DOM feature has had renewed interest, and as part of that conversation, the
shadowroot
attribute was renamed toshadowrootmode
. Chrome has shipped this new attribute in M111. Chrome also will continue supporting the oldshadowroot
attribute for some time, as developers migrate.I believe DOMPurify should be updated to look for both
shadowroot
andshadowrootmode
.@securityMB
The text was updated successfully, but these errors were encountered: