@syncfusion/ej2-base 27.1.50 → 27.1.52
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/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +13 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +13 -3
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -60
- package/src/sanitize-helper.js +13 -3
- package/styles/animation/_all.scss +0 -24
- package/styles/bootstrap-dark-lite.css +0 -50
- package/styles/bootstrap-dark.css +0 -50
- package/styles/bootstrap-lite.css +0 -50
- package/styles/bootstrap.css +0 -50
- package/styles/bootstrap4-lite.css +0 -50
- package/styles/bootstrap4.css +0 -50
- package/styles/bootstrap5-dark-lite.css +0 -50
- package/styles/bootstrap5-dark.css +0 -50
- package/styles/bootstrap5-lite.css +0 -50
- package/styles/bootstrap5.3-lite.css +0 -50
- package/styles/bootstrap5.3.css +0 -50
- package/styles/bootstrap5.css +0 -50
- package/styles/common/_core.scss +0 -2
- package/styles/definition/_bootstrap5.3-dark.scss +1 -1
- package/styles/fabric-dark-lite.css +0 -50
- package/styles/fabric-dark.css +0 -50
- package/styles/fabric-lite.css +0 -50
- package/styles/fabric.css +0 -50
- package/styles/fluent-dark-lite.css +0 -50
- package/styles/fluent-dark.css +0 -50
- package/styles/fluent-lite.css +0 -50
- package/styles/fluent.css +0 -50
- package/styles/fluent2-lite.css +0 -50
- package/styles/fluent2.css +0 -50
- package/styles/highcontrast-light-lite.css +0 -50
- package/styles/highcontrast-light.css +0 -50
- package/styles/highcontrast-lite.css +0 -50
- package/styles/highcontrast.css +0 -50
- package/styles/material-dark-lite.css +0 -50
- package/styles/material-dark.css +0 -50
- package/styles/material-lite.css +0 -50
- package/styles/material.css +0 -50
- package/styles/material3-dark-lite.css +0 -50
- package/styles/material3-dark.css +0 -50
- package/styles/material3-lite.css +0 -50
- package/styles/material3.css +0 -50
- package/styles/offline-theme/material-dark.css +0 -50
- package/styles/offline-theme/material.css +0 -50
- package/styles/offline-theme/tailwind-dark.css +0 -50
- package/styles/offline-theme/tailwind.css +0 -50
- package/styles/tailwind-dark-lite.css +0 -50
- package/styles/tailwind-dark.css +0 -50
- package/styles/tailwind-lite.css +0 -50
- package/styles/tailwind.css +0 -50
|
@@ -9645,6 +9645,7 @@ const removeTags = [
|
|
|
9645
9645
|
];
|
|
9646
9646
|
const removeAttrs = [
|
|
9647
9647
|
{ attribute: 'href', selector: '[href*="javascript:"]' },
|
|
9648
|
+
{ attribute: 'href', selector: 'a[href]' },
|
|
9648
9649
|
{ attribute: 'background', selector: '[background^="javascript:"]' },
|
|
9649
9650
|
{ attribute: 'style', selector: '[style*="javascript:"]' },
|
|
9650
9651
|
{ attribute: 'style', selector: '[style*="expression("]' },
|
|
@@ -9806,9 +9807,18 @@ class SanitizeHtmlHelper {
|
|
|
9806
9807
|
this.removeAttrs.forEach((item, index) => {
|
|
9807
9808
|
const elements = this.wrapElement.querySelectorAll(item.selector);
|
|
9808
9809
|
if (elements.length > 0) {
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9810
|
+
if (item.selector === 'a[href]') {
|
|
9811
|
+
elements.forEach((element) => {
|
|
9812
|
+
if ((element.getAttribute(item.attribute)).replace(/\t|\s|&/, '').indexOf('javascript:alert') !== -1) {
|
|
9813
|
+
element.removeAttribute(item.attribute);
|
|
9814
|
+
}
|
|
9815
|
+
});
|
|
9816
|
+
}
|
|
9817
|
+
else {
|
|
9818
|
+
elements.forEach((element) => {
|
|
9819
|
+
element.removeAttribute(item.attribute);
|
|
9820
|
+
});
|
|
9821
|
+
}
|
|
9812
9822
|
}
|
|
9813
9823
|
});
|
|
9814
9824
|
}
|