jodit-pro-react 5.5.43 → 5.5.44
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.
|
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
193
193
|
var init_constants = __esm({
|
|
194
194
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
195
195
|
"use strict";
|
|
196
|
-
APP_VERSION = "4.12.
|
|
196
|
+
APP_VERSION = "4.12.28";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -4389,11 +4389,32 @@ var init_utils3 = __esm({
|
|
|
4389
4389
|
});
|
|
4390
4390
|
|
|
4391
4391
|
// node_modules/jodit/esm/core/helpers/html/safe-html.js
|
|
4392
|
+
function isSmuggledForeignHtml(elm) {
|
|
4393
|
+
if (elm.namespaceURI !== HTML_NAMESPACE || elm.closest("math,svg") == null) {
|
|
4394
|
+
return false;
|
|
4395
|
+
}
|
|
4396
|
+
for (let parent = elm.parentElement; parent; parent = parent.parentElement) {
|
|
4397
|
+
const name = parent.nodeName.toLowerCase();
|
|
4398
|
+
if (name === "math" || name === "svg") {
|
|
4399
|
+
break;
|
|
4400
|
+
}
|
|
4401
|
+
if (HTML_INTEGRATION_POINTS.has(name)) {
|
|
4402
|
+
return false;
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
return true;
|
|
4406
|
+
}
|
|
4392
4407
|
function safeHTML(box, options2) {
|
|
4393
4408
|
var _a2;
|
|
4394
4409
|
if (!Dom.isElement(box) && !Dom.isFragment(box)) {
|
|
4395
4410
|
return;
|
|
4396
4411
|
}
|
|
4412
|
+
const foreign = box.querySelectorAll("math *, svg *");
|
|
4413
|
+
for (let i54 = 0; i54 < foreign.length; i54++) {
|
|
4414
|
+
if (foreign[i54].isConnected && isSmuggledForeignHtml(foreign[i54])) {
|
|
4415
|
+
Dom.safeRemove(foreign[i54]);
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4397
4418
|
const removeEvents = (_a2 = options2.removeEventAttributes) !== null && _a2 !== void 0 ? _a2 : options2.removeOnError;
|
|
4398
4419
|
const process2 = (node) => {
|
|
4399
4420
|
if (!Dom.isElement(node)) {
|
|
@@ -4478,12 +4499,19 @@ function sanitizeHTMLElement(elm, { safeJavaScriptLink, removeOnError } = {
|
|
|
4478
4499
|
}
|
|
4479
4500
|
return effected;
|
|
4480
4501
|
}
|
|
4481
|
-
var URL_ATTRIBUTES, DOCUMENT_EMBED_TAGS;
|
|
4502
|
+
var HTML_NAMESPACE, HTML_INTEGRATION_POINTS, URL_ATTRIBUTES, DOCUMENT_EMBED_TAGS;
|
|
4482
4503
|
var init_safe_html = __esm({
|
|
4483
4504
|
"node_modules/jodit/esm/core/helpers/html/safe-html.js"() {
|
|
4484
4505
|
"use strict";
|
|
4485
4506
|
init_dom();
|
|
4486
4507
|
init_utils3();
|
|
4508
|
+
HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
|
|
4509
|
+
HTML_INTEGRATION_POINTS = /* @__PURE__ */ new Set([
|
|
4510
|
+
"foreignobject",
|
|
4511
|
+
"annotation-xml",
|
|
4512
|
+
"desc",
|
|
4513
|
+
"title"
|
|
4514
|
+
]);
|
|
4487
4515
|
URL_ATTRIBUTES = [
|
|
4488
4516
|
"src",
|
|
4489
4517
|
"data",
|