dompurify 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/purify.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */
1
+ /*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
2
2
 
3
3
  function _typeof(obj) {
4
4
  "@babel/helpers - typeof";
@@ -190,7 +190,7 @@ function clone(object) {
190
190
  var property;
191
191
 
192
192
  for (property in object) {
193
- if (apply(hasOwnProperty, object, [property])) {
193
+ if (apply(hasOwnProperty, object, [property]) === true) {
194
194
  newObject[property] = object[property];
195
195
  }
196
196
  }
@@ -322,7 +322,7 @@ function createDOMPurify() {
322
322
  */
323
323
 
324
324
 
325
- DOMPurify.version = '2.4.1';
325
+ DOMPurify.version = '2.4.3';
326
326
  /**
327
327
  * Array of elements that DOMPurify removed during sanitation.
328
328
  * Empty if nothing was removed.
@@ -947,7 +947,7 @@ function createDOMPurify() {
947
947
  doc = implementation.createDocument(NAMESPACE, 'template', null);
948
948
 
949
949
  try {
950
- doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;
950
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
951
951
  } catch (_) {// Syntax error if dirtyPayload is invalid xml
952
952
  }
953
953
  }