Skip to content

Commit

Permalink
Fixed a typo
Browse files Browse the repository at this point in the history
`shadowrootmod` should be `shadowrootmode`.
  • Loading branch information
masatokinugawa authored Jun 3, 2023
1 parent b958a25 commit 1c9faab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ function createDOMPurify(window = getGlobal()) {
returnNode = body;
}

if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmod) {
if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
/*
AdoptNode() is not used because internal state is not reset
(e.g. the past names map of a HTMLFormElement), this is safe
Expand Down

0 comments on commit 1c9faab

Please sign in to comment.