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