Skip to content

Commit

Permalink
Merge pull request #815 from masatokinugawa/patch-1
Browse files Browse the repository at this point in the history
Fixed a typo in shadowrootmode attribute
  • Loading branch information
cure53 committed Jun 4, 2023
2 parents b958a25 + 1c9faab commit 5e24d1f
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 5e24d1f

Please sign in to comment.