Skip to content

Commit

Permalink
test: fixed a test for MSIE11
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed May 11, 2021
1 parent bc4f2ec commit f4e594a
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 13 deletions.
6 changes: 4 additions & 2 deletions dist/purify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.cjs.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/purify.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.es.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/purify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/purify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/purify.min.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,8 @@ function createDOMPurify(window = getGlobal()) {
} else if (importedNode.nodeName === 'HTML') {
body = importedNode;
} else {
body.append(importedNode);
// eslint-disable-next-line unicorn/prefer-dom-node-append
body.appendChild(importedNode);
}
} else {
/* Exit directly if we have nothing to do */
Expand Down Expand Up @@ -1237,7 +1238,8 @@ function createDOMPurify(window = getGlobal()) {
returnNode = createDocumentFragment.call(body.ownerDocument);

while (body.firstChild) {
returnNode.append(body.firstChild);
// eslint-disable-next-line unicorn/prefer-dom-node-append
returnNode.appendChild(body.firstChild);
}
} else {
returnNode = body;
Expand Down

0 comments on commit f4e594a

Please sign in to comment.