diff --git a/src/purify.js b/src/purify.js index 613f955b6..d0ba6669f 100644 --- a/src/purify.js +++ b/src/purify.js @@ -844,7 +844,9 @@ function createDOMPurify(window = getGlobal()) { if (!doc || !doc.documentElement) { doc = implementation.createDocument(NAMESPACE, 'template', null); try { - doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; + doc.documentElement.innerHTML = IS_EMPTY_INPUT + ? emptyHTML + : dirtyPayload; } catch (_) { // Syntax error if dirtyPayload is invalid xml }