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.mjs CHANGED
@@ -11130,7 +11130,7 @@ function xmlElementLogicTrivial(node, buffer, options) {
11130
11130
  }
11131
11131
  childNodes = childNodes.sort((a, b) => a.siblingPosition - b.siblingPosition);
11132
11132
  if (childNodes.length === 0) {
11133
- if (options.outputMethod === "html" && ["hr", "link", "meta"].includes(node.nodeName)) {
11133
+ if (options.outputMethod === "html" && ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"].includes(node.nodeName)) {
11134
11134
  buffer.push(">");
11135
11135
  } else if (options.selfClosingTags) {
11136
11136
  buffer.push("/>");