@syncfusion/ej2-base 27.1.50 → 27.1.53
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 +16 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +16 -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 +5 -47
- package/src/browser.js +3 -0
- package/src/sanitize-helper.js +13 -3
- package/styles/animation/_all.scss +0 -24
- package/styles/bootstrap-dark-lite.css +4 -51
- package/styles/bootstrap-dark.css +4 -51
- package/styles/bootstrap-lite.css +4 -51
- package/styles/bootstrap.css +4 -51
- package/styles/bootstrap4-lite.css +4 -51
- package/styles/bootstrap4.css +4 -51
- package/styles/bootstrap5-dark-lite.css +4 -51
- package/styles/bootstrap5-dark.css +4 -51
- package/styles/bootstrap5-lite.css +4 -51
- package/styles/bootstrap5.3-lite.css +4 -51
- package/styles/bootstrap5.3.css +4 -51
- package/styles/bootstrap5.css +4 -51
- package/styles/common/_core.scss +0 -2
- package/styles/definition/_bootstrap5.3-dark.scss +1 -1
- package/styles/fabric-dark-lite.css +4 -51
- package/styles/fabric-dark.css +4 -51
- package/styles/fabric-lite.css +4 -51
- package/styles/fabric.css +4 -51
- package/styles/fluent-dark-lite.css +4 -51
- package/styles/fluent-dark.css +4 -51
- package/styles/fluent-lite.css +4 -51
- package/styles/fluent.css +4 -51
- package/styles/fluent2-lite.css +4 -51
- package/styles/fluent2.css +4 -51
- package/styles/highcontrast-light-lite.css +4 -51
- package/styles/highcontrast-light.css +4 -51
- package/styles/highcontrast-lite.css +4 -51
- package/styles/highcontrast.css +4 -51
- package/styles/material-dark-lite.css +4 -51
- package/styles/material-dark.css +4 -51
- package/styles/material-lite.css +4 -51
- package/styles/material.css +4 -51
- package/styles/material3-dark-lite.css +4 -51
- package/styles/material3-dark.css +4 -51
- package/styles/material3-lite.css +4 -51
- package/styles/material3.css +4 -51
- package/styles/offline-theme/material-dark.css +4 -51
- package/styles/offline-theme/material.css +4 -51
- package/styles/offline-theme/tailwind-dark.css +4 -51
- package/styles/offline-theme/tailwind.css +4 -51
- package/styles/tailwind-dark-lite.css +4 -51
- package/styles/tailwind-dark.css +4 -51
- package/styles/tailwind-lite.css +4 -51
- package/styles/tailwind.css +4 -51
|
@@ -4314,6 +4314,9 @@ class Browser {
|
|
|
4314
4314
|
browserDetails['isTouch'] = true;
|
|
4315
4315
|
browserDetails['isPointer'] = true;
|
|
4316
4316
|
}
|
|
4317
|
+
if (window && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
|
|
4318
|
+
browserDetails['isPointer'] = false;
|
|
4319
|
+
}
|
|
4317
4320
|
if ('undefined' === typeof browserDetails[`${key}`]) {
|
|
4318
4321
|
return browserDetails[`${key}`] = regX.test(Browser.userAgent);
|
|
4319
4322
|
}
|
|
@@ -9645,6 +9648,7 @@ const removeTags = [
|
|
|
9645
9648
|
];
|
|
9646
9649
|
const removeAttrs = [
|
|
9647
9650
|
{ attribute: 'href', selector: '[href*="javascript:"]' },
|
|
9651
|
+
{ attribute: 'href', selector: 'a[href]' },
|
|
9648
9652
|
{ attribute: 'background', selector: '[background^="javascript:"]' },
|
|
9649
9653
|
{ attribute: 'style', selector: '[style*="javascript:"]' },
|
|
9650
9654
|
{ attribute: 'style', selector: '[style*="expression("]' },
|
|
@@ -9806,9 +9810,18 @@ class SanitizeHtmlHelper {
|
|
|
9806
9810
|
this.removeAttrs.forEach((item, index) => {
|
|
9807
9811
|
const elements = this.wrapElement.querySelectorAll(item.selector);
|
|
9808
9812
|
if (elements.length > 0) {
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9813
|
+
if (item.selector === 'a[href]') {
|
|
9814
|
+
elements.forEach((element) => {
|
|
9815
|
+
if ((element.getAttribute(item.attribute)).replace(/\t|\s|&/, '').indexOf('javascript:alert') !== -1) {
|
|
9816
|
+
element.removeAttribute(item.attribute);
|
|
9817
|
+
}
|
|
9818
|
+
});
|
|
9819
|
+
}
|
|
9820
|
+
else {
|
|
9821
|
+
elements.forEach((element) => {
|
|
9822
|
+
element.removeAttribute(item.attribute);
|
|
9823
|
+
});
|
|
9824
|
+
}
|
|
9812
9825
|
}
|
|
9813
9826
|
});
|
|
9814
9827
|
}
|