dompurify 2.4.1 → 2.4.2
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/README.md +3 -3
- package/dist/purify.cjs.js +4 -4
- package/dist/purify.cjs.js.map +1 -1
- package/dist/purify.es.js +4 -4
- package/dist/purify.es.js.map +1 -1
- package/dist/purify.js +4 -4
- package/dist/purify.js.map +1 -1
- package/dist/purify.min.js +2 -2
- package/dist/purify.min.js.map +1 -1
- package/package.json +1 -1
package/dist/purify.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 2.4.
|
|
1
|
+
/*! @license DOMPurify 2.4.2 | (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.2/LICENSE */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
var property;
|
|
197
197
|
|
|
198
198
|
for (property in object) {
|
|
199
|
-
if (apply(hasOwnProperty, object, [property])) {
|
|
199
|
+
if (apply(hasOwnProperty, object, [property]) === true) {
|
|
200
200
|
newObject[property] = object[property];
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
*/
|
|
329
329
|
|
|
330
330
|
|
|
331
|
-
DOMPurify.version = '2.4.
|
|
331
|
+
DOMPurify.version = '2.4.2';
|
|
332
332
|
/**
|
|
333
333
|
* Array of elements that DOMPurify removed during sanitation.
|
|
334
334
|
* Empty if nothing was removed.
|
|
@@ -953,7 +953,7 @@
|
|
|
953
953
|
doc = implementation.createDocument(NAMESPACE, 'template', null);
|
|
954
954
|
|
|
955
955
|
try {
|
|
956
|
-
doc.documentElement.innerHTML = IS_EMPTY_INPUT ?
|
|
956
|
+
doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
|
|
957
957
|
} catch (_) {// Syntax error if dirtyPayload is invalid xml
|
|
958
958
|
}
|
|
959
959
|
}
|