xslt-processor 5.0.7 → 5.0.8

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.js CHANGED
@@ -11145,7 +11145,7 @@ function xmlElementLogicTrivial(node, buffer, options) {
11145
11145
  }
11146
11146
  childNodes = childNodes.sort((a, b) => a.siblingPosition - b.siblingPosition);
11147
11147
  if (childNodes.length === 0) {
11148
- if (options.outputMethod === "html" && ["hr", "link", "meta"].includes(node.nodeName)) {
11148
+ if (options.outputMethod === "html" && ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"].includes(node.nodeName)) {
11149
11149
  buffer.push(">");
11150
11150
  } else if (options.selfClosingTags) {
11151
11151
  buffer.push("/>");