marko 6.0.0-next.3.52 → 6.0.0-next.3.53

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.
@@ -5288,10 +5288,13 @@ var native_tag_default = {
5288
5288
  } else {
5289
5289
  tag.insertBefore(tag.node.body.body).forEach((child) => child.skip());
5290
5290
  }
5291
+ const shouldMark = nodeRef2 && (extra[kSerializeMarker] || extra[kSerializeMarker] === void 0 && (isStatefulReferences(extra.referencedBindings) || tag.node.attributes.some(
5292
+ (attr2) => isStatefulReferences(attr2.value.extra?.referencedBindings)
5293
+ )));
5291
5294
  if (!openTagOnly && !selectArgs) {
5292
5295
  writeTo(
5293
5296
  tag,
5294
- isHTML && (tagName === "html" || tagName === "body")
5297
+ isHTML && !shouldMark && (tagName === "html" || tagName === "body")
5295
5298
  )`</${tag.node.name}>`;
5296
5299
  }
5297
5300
  if (isHTML && extra.tagNameNullable) {
@@ -5299,9 +5302,7 @@ var native_tag_default = {
5299
5302
  import_compiler29.types.ifStatement(tag.node.name, consumeHTML(tag))
5300
5303
  )[0].skip();
5301
5304
  }
5302
- if (nodeRef2 && (extra[kSerializeMarker] || extra[kSerializeMarker] === void 0 && (isStatefulReferences(extra.referencedBindings) || tag.node.attributes.some(
5303
- (attr2) => isStatefulReferences(attr2.value.extra?.referencedBindings)
5304
- )))) {
5305
+ if (shouldMark) {
5305
5306
  markNode(tag, nodeRef2);
5306
5307
  }
5307
5308
  exit2(tag);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.0-next.3.52",
3
+ "version": "6.0.0-next.3.53",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",