xslt-processor 5.0.5 → 5.0.6
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.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/dist/umd/xslt-processor.global.js +5 -5
- package/dist/umd/xslt-processor.global.js.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11013,7 +11013,7 @@ function xmlTransformedTextRecursive(node, buffer, options) {
|
|
|
11013
11013
|
}
|
|
11014
11014
|
} else if (nodeType == DOM_COMMENT_NODE) {
|
|
11015
11015
|
if (options.outputMethod !== "text") {
|
|
11016
|
-
buffer.push(
|
|
11016
|
+
buffer.push(`<!--${nodeValue}-->`);
|
|
11017
11017
|
}
|
|
11018
11018
|
} else if (nodeType === DOM_PROCESSING_INSTRUCTION_NODE) {
|
|
11019
11019
|
if (options.outputMethod !== "text") {
|
|
@@ -11451,14 +11451,14 @@ var XmlParser = class {
|
|
|
11451
11451
|
}
|
|
11452
11452
|
if (htmlText.slice(i + 1, i + 4) === "!--") {
|
|
11453
11453
|
let endTagIndex = htmlText.slice(i + 4).indexOf("-->");
|
|
11454
|
-
if (endTagIndex) {
|
|
11454
|
+
if (endTagIndex >= 0) {
|
|
11455
11455
|
let node = domCreateComment(xmlDocument, htmlText.slice(i + 4, i + endTagIndex + 4));
|
|
11456
11456
|
domAppendChild(parent, node);
|
|
11457
11457
|
i += endTagIndex + 6;
|
|
11458
11458
|
}
|
|
11459
11459
|
} else if (htmlText.slice(i + 1, i + 9) === "!DOCTYPE") {
|
|
11460
11460
|
let endTagIndex = htmlText.slice(i + 9).indexOf(">");
|
|
11461
|
-
if (endTagIndex) {
|
|
11461
|
+
if (endTagIndex >= 0) {
|
|
11462
11462
|
const dtdValue = htmlText.slice(i + 9, i + endTagIndex + 9).trimStart();
|
|
11463
11463
|
const node = domCreateDTDSection(xmlDocument, dtdValue);
|
|
11464
11464
|
domAppendChild(parent, node);
|
|
@@ -11557,21 +11557,21 @@ var XmlParser = class {
|
|
|
11557
11557
|
}
|
|
11558
11558
|
if (xml.slice(i + 1, i + 4) === "!--") {
|
|
11559
11559
|
let endTagIndex = xml.slice(i + 4).indexOf("-->");
|
|
11560
|
-
if (endTagIndex) {
|
|
11560
|
+
if (endTagIndex >= 0) {
|
|
11561
11561
|
let node = domCreateComment(xmlDocument, xml.slice(i + 4, i + endTagIndex + 4));
|
|
11562
11562
|
domAppendChild(parent, node);
|
|
11563
11563
|
i += endTagIndex + 6;
|
|
11564
11564
|
}
|
|
11565
11565
|
} else if (xml.slice(i + 1, i + 9) === "![CDATA[") {
|
|
11566
11566
|
let endTagIndex = xml.slice(i + 9).indexOf("]]>");
|
|
11567
|
-
if (endTagIndex) {
|
|
11567
|
+
if (endTagIndex >= 0) {
|
|
11568
11568
|
let node = domCreateCDATASection(xmlDocument, xml.slice(i + 9, i + endTagIndex + 9));
|
|
11569
11569
|
domAppendChild(parent, node);
|
|
11570
11570
|
i += endTagIndex + 11;
|
|
11571
11571
|
}
|
|
11572
11572
|
} else if (xml.slice(i + 1, i + 9) === "!DOCTYPE") {
|
|
11573
11573
|
let endTagIndex = xml.slice(i + 9).indexOf(">");
|
|
11574
|
-
if (endTagIndex) {
|
|
11574
|
+
if (endTagIndex >= 0) {
|
|
11575
11575
|
const dtdValue = xml.slice(i + 9, i + endTagIndex + 9).trimStart();
|
|
11576
11576
|
const node = domCreateDTDSection(xmlDocument, dtdValue);
|
|
11577
11577
|
domAppendChild(parent, node);
|
|
@@ -18112,6 +18112,7 @@ export {
|
|
|
18112
18112
|
XmlParser,
|
|
18113
18113
|
Xslt,
|
|
18114
18114
|
domDocumentToXDocument,
|
|
18115
|
-
xmlEscapeText
|
|
18115
|
+
xmlEscapeText,
|
|
18116
|
+
xmlTransformedText
|
|
18116
18117
|
};
|
|
18117
18118
|
//# sourceMappingURL=index.mjs.map
|