Skip to content

Commit

Permalink
Fixed a reference error in MSIE11, see #372
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Oct 19, 2019
1 parent 42642ab commit 56b9e9c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion src/purify.js
Expand Up @@ -514,7 +514,7 @@ function createDOMPurify(window = getGlobal()) {
: dirty;
}

if (leadingWhitespace) {
if (dirty && leadingWhitespace) {
doc.body.insertBefore(
document.createTextNode(leadingWhitespace),
doc.body.childNodes[0] || null
Expand Down

0 comments on commit 56b9e9c

Please sign in to comment.