olova 2.0.64 → 2.0.67

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/compiler.js CHANGED
@@ -403,9 +403,10 @@ function parseHTML(html) {
403
403
  const attrsStr = rawTag.slice(tagNameEnd).replace(/\/\s*$/, "").trim();
404
404
  const selfClose = /\/\s*$/.test(rawTag);
405
405
  const attrs = parseAttributes2(attrsStr);
406
- const isSelfClosing = !!selfClose || /^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/i.test(
406
+ const isNativeVoidTag = tag === tag.toLowerCase() && /^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/.test(
407
407
  tag
408
408
  );
409
+ const isSelfClosing = !!selfClose || isNativeVoidTag;
409
410
  const element = {
410
411
  type: "element",
411
412
  tag,