dompurify 3.3.0 → 3.3.1

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
1
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -311,7 +311,7 @@
311
311
  function createDOMPurify() {
312
312
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
313
313
  const DOMPurify = root => createDOMPurify(root);
314
- DOMPurify.version = '3.3.0';
314
+ DOMPurify.version = '3.3.1';
315
315
  DOMPurify.removed = [];
316
316
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
317
317
  // Not running in a browser, provide a factory function
@@ -657,6 +657,12 @@
657
657
  }
658
658
  addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
659
659
  }
660
+ if (cfg.ADD_FORBID_CONTENTS) {
661
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
662
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
663
+ }
664
+ addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
665
+ }
660
666
  /* Add #text in case KEEP_CONTENT is set to true */
661
667
  if (KEEP_CONTENT) {
662
668
  ALLOWED_TAGS['#text'] = true;