@progress/kendo-spreadsheet-common 1.2.12-develop.2 → 1.2.12-develop.3
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/index-esm.js +8 -3
- package/dist/index.js +8 -3
- package/package.json +1 -1
package/dist/index-esm.js
CHANGED
|
@@ -39029,11 +39029,16 @@ class Clipboard {
|
|
|
39029
39029
|
state = data.plain ? parseTSV(data.plain) : newState();
|
|
39030
39030
|
if (data.html) {
|
|
39031
39031
|
let doc = this.iframe.contentWindow.document;
|
|
39032
|
+
let parsed = new DOMParser().parseFromString(data.html, "text/html");
|
|
39033
|
+
let safeTable = parsed.querySelector("table");
|
|
39034
|
+
let program = parsed.head.querySelector("meta[name=ProgId]")?.getAttribute("content");
|
|
39032
39035
|
doc.open();
|
|
39033
|
-
doc.write(
|
|
39036
|
+
doc.write('<html><head></head><body></body></html>');
|
|
39034
39037
|
doc.close();
|
|
39035
|
-
|
|
39036
|
-
|
|
39038
|
+
if (safeTable) {
|
|
39039
|
+
doc.body.appendChild(doc.importNode(safeTable, true));
|
|
39040
|
+
}
|
|
39041
|
+
let table = doc.querySelector("table");
|
|
39037
39042
|
if (table) {
|
|
39038
39043
|
let richState = parseHTML(table, program);
|
|
39039
39044
|
|
package/dist/index.js
CHANGED
|
@@ -39030,11 +39030,16 @@
|
|
|
39030
39030
|
state = data.plain ? parseTSV(data.plain) : newState();
|
|
39031
39031
|
if (data.html) {
|
|
39032
39032
|
let doc = this.iframe.contentWindow.document;
|
|
39033
|
+
let parsed = new DOMParser().parseFromString(data.html, "text/html");
|
|
39034
|
+
let safeTable = parsed.querySelector("table");
|
|
39035
|
+
let program = parsed.head.querySelector("meta[name=ProgId]")?.getAttribute("content");
|
|
39033
39036
|
doc.open();
|
|
39034
|
-
doc.write(
|
|
39037
|
+
doc.write('<html><head></head><body></body></html>');
|
|
39035
39038
|
doc.close();
|
|
39036
|
-
|
|
39037
|
-
|
|
39039
|
+
if (safeTable) {
|
|
39040
|
+
doc.body.appendChild(doc.importNode(safeTable, true));
|
|
39041
|
+
}
|
|
39042
|
+
let table = doc.querySelector("table");
|
|
39038
39043
|
if (table) {
|
|
39039
39044
|
let richState = parseHTML(table, program);
|
|
39040
39045
|
|