xslt-processor 4.8.1 → 4.8.2

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/index.mjs CHANGED
@@ -17444,13 +17444,7 @@ var Xslt = class {
17444
17444
  node = context.nodeList[context.position];
17445
17445
  let newNode;
17446
17446
  newNode = domCreateElement(this.outputDocument, template.nodeName);
17447
- if (node && node.siblingPosition !== void 0) {
17448
- newNode.siblingPosition = node.siblingPosition;
17449
- } else if (node === void 0 && context.nodeList.length === 0) {
17450
- newNode.siblingPosition = (output || this.outputDocument).childNodes.length;
17451
- } else {
17452
- newNode.siblingPosition = 0;
17453
- }
17447
+ newNode.siblingPosition = (output || this.outputDocument).childNodes.length;
17454
17448
  domAppendChild(output || this.outputDocument, newNode);
17455
17449
  const useAttributeSetsAttr = template.childNodes.find(
17456
17450
  (a) => (a == null ? void 0 : a.nodeType) === DOM_ATTRIBUTE_NODE && a.nodeName === "use-attribute-sets"