diff --git a/.changeset/empty-text-resume.md b/.changeset/empty-text-resume.md
new file mode 100644
index 00000000000..99b7e25f24c
--- /dev/null
+++ b/.changeset/empty-text-resume.md
@@ -0,0 +1,9 @@
+---
+"@marko/runtime-tags": patch
+---
+
+Fix resume claiming the wrong DOM node for a placeholder that renders empty on the server (eg `
one* first
two second
diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/sizes.json b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/sizes.json
index 3c2a0af4a94..2df376077f0 100644
--- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-await-class-to-tags/sizes.json
@@ -2,8 +2,8 @@
"dom": {
"template.marko.page.mjs": {
"total": {
- "min": 66710,
- "brotli": 20984
+ "min": 66673,
+ "brotli": 20953
},
"files": {
"components/tags-child.marko": 624,
diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js
index 1f666ed6183..fc264364b0b 100644
--- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.debug.js
@@ -5,7 +5,7 @@ var tags_counter_default = _template("__tests__/components/tags-counter.marko",
_scope_reason();
const $scope0_id = _scope_id();
let count = 0;
- _html(`${_escape(count)}${_el_resume($scope0_id, "#text/1")} ${_el_resume($scope0_id, "#button/0")}`);
+ _html(`${_text_resume($scope0_id, "#text/1", count)} ${_el_resume($scope0_id, "#button/0")}`);
_script($scope0_id, "__tests__/components/tags-counter.marko_0");
writeScope($scope0_id, { count }, "__tests__/components/tags-counter.marko", 0, { count: "1:6" });
_resume_branch($scope0_id);
diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js
index 495b16f3ded..6215d7e53df 100644
--- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/html.bundle.js
@@ -5,7 +5,7 @@ var tags_counter_default = _template("b", (input) => {
_scope_reason();
const $scope0_id = _scope_id();
let count = 0;
- _html(`${_escape(count)}${_el_resume($scope0_id, "b")} ${_el_resume($scope0_id, "a")}`);
+ _html(`${_text_resume($scope0_id, "b", count)} ${_el_resume($scope0_id, "a")}`);
_script($scope0_id, "b0");
writeScope($scope0_id, { f: count });
_resume_branch($scope0_id);
diff --git a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/writes.debug.html
index 0e869d76f1a..56c2ae383c0 100644
--- a/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/writes.debug.html
@@ -1,5 +1,5 @@
0 0
+ data-parent=0>0
diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/writes.html
index 8c09f0fd6dc..3ffcaa1b353 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/writes.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/async-state/__snapshots__/writes.html
@@ -1,4 +1,4 @@
-inc LOADING...
+inc LOADING...
diff --git a/packages/runtime-tags/src/__tests__/fixtures/async-state/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/async-state/sizes.json
index 5097ff379ad..cc58cc17b2e 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/async-state/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures/async-state/sizes.json
@@ -1,8 +1,8 @@
{
"dom": {
"template.marko.page.mjs": {
- "min": 8769,
- "brotli": 3828
+ "min": 8732,
+ "brotli": 3816
}
},
"html": {
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js
index f9ecd947ed8..a50cb8c9c2d 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.debug.js
@@ -4,7 +4,7 @@ var custom_tag_default = _template("__tests__/tags/custom-tag/index.marko", (inp
const $scope0_id = _scope_id();
const { thing: { x, content } } = input;
_dynamic_tag($scope0_id, "#text/0", content, {}, 0, 0, _serialize_guard($scope0_reason, 2));
- _html(`${_escape(x)}${_el_resume($scope0_id, "#text/1", _serialize_guard($scope0_reason, 1))}
`);
+ _html(`${_text_resume($scope0_id, "#text/1", x, _serialize_guard($scope0_reason, 1))}
`);
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/custom-tag/index.marko", 0);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js
index fbc988075b9..aec270a2b01 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tag-inside-if-tag/__snapshots__/html.bundle.js
@@ -4,7 +4,7 @@ var custom_tag_default = _template("b", (input) => {
const $scope0_id = _scope_id();
const { thing: { x, content } } = input;
_dynamic_tag($scope0_id, "a", content, {}, 0, 0, _serialize_guard($scope0_reason, 2));
- _html(`${_escape(x)}${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 1))}
`);
+ _html(`${_text_resume($scope0_id, "b", x, _serialize_guard($scope0_reason, 1))}
`);
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/writes.debug.html
index 19c7d818f5a..6b8a3b36e6e 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-body-param-event-handler-no-serialize/__snapshots__/writes.debug.html
@@ -1,4 +1,4 @@
-A
+A
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/writes.html
index 6120ef39d7d..8c94b3a4192 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/writes.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/__snapshots__/writes.html
@@ -1,3 +1,3 @@
-a:1b:2other
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/sizes.json
index 757c3a9eeb9..9a1b43620a9 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-and-static/sizes.json
@@ -7,6 +7,6 @@
},
"html": {
"min": 341,
- "brotli": 248
+ "brotli": 249
}
}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js
index cce03f2a508..201fc24baf7 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.debug.js
@@ -15,9 +15,9 @@ var template_default = _template("__tests__/template.marko", (input) => {
let $item;
if (x) {
$item = attrTag({ content: _content("__tests__/template.marko_1*content", (y) => {
- const $scope1_reason = _scope_reason(), $sg__y = _serialize_guard($scope1_reason, 0);
+ const $scope1_reason = _scope_reason();
const $scope1_id = _scope_id();
- _html(`y: ${_sep($sg__y)}${_escape(y)}${_el_resume($scope1_id, "#text/0", $sg__y)}`);
+ _html(`y: ${_text_resume($scope1_id, "#text/0", y, _serialize_guard($scope1_reason, 0) * 2)}`);
_serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "4:10");
}, $scope0_id) });
}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js
index 99b9100ffc0..eb7cf068629 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/html.bundle.js
@@ -14,9 +14,9 @@ var template_default = _template("a", (input) => {
_set_serialize_reason(1);
let $item;
$item = attrTag({ content: _content("a0", (y) => {
- const $scope1_reason = _scope_reason(), $sg__y = _serialize_guard($scope1_reason, 0);
+ const $scope1_reason = _scope_reason();
const $scope1_id = _scope_id();
- _html(`y: ${_sep($sg__y)}${_escape(y)}${_el_resume($scope1_id, "a", $sg__y)}`);
+ _html(`y: ${_text_resume($scope1_id, "a", y, _serialize_guard($scope1_reason, 0) * 2)}`);
_serialize_if($scope1_reason, 0) && writeScope($scope1_id, {});
}, $scope0_id) });
const $childScope = _peek_scope_id();
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/writes.debug.html
index 6659124b5ec..47f3e011e67 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-with-params/__snapshots__/writes.debug.html
@@ -1,5 +1,5 @@
y:
- 1Toggle
+ 1Toggle
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/writes.html
index 0f5687b3fae..bd9e60cc1ec 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/writes.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/__snapshots__/writes.html
@@ -1,4 +1,4 @@
-123
+123
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/sizes.json
index 24387c83118..5147d50a642 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-closure/sizes.json
@@ -7,6 +7,6 @@
},
"html": {
"min": 314,
- "brotli": 222
+ "brotli": 223
}
}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/writes.debug.html
index 1d7c61f3bca..5b331c29ca0 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/at-tags-for-loop-param-event-handler-no-scope/__snapshots__/writes.debug.html
@@ -1,4 +1,4 @@
-Click Click
+Click Click
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/writes.html
index 5247a9c93c8..706cf24f351 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/writes.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/__snapshots__/writes.html
@@ -1,4 +1,4 @@
-helloworld
+helloworld
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/sizes.json
index 5bd6aaffa18..d510cfca37c 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-local-member-expression-closure/sizes.json
@@ -7,6 +7,6 @@
},
"html": {
"min": 308,
- "brotli": 217
+ "brotli": 218
}
}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js
index e2910dff181..46d7d3d643c 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.debug.js
@@ -1,16 +1,16 @@
// template.marko
var template_default = _template("__tests__/template.marko", (input) => {
- const $scope0_reason = _scope_reason(), $sg__input_obj = _serialize_guard($scope0_reason, 0);
+ const $scope0_reason = _scope_reason();
const $scope0_id = _scope_id();
const Row = { content: _content("__tests__/template.marko_1*content", (input) => {
const $scope1_id = _scope_id();
const $scope1_reason = _scope_reason();
- _html(`${_escape(input.cell.label)}${_el_resume($scope1_id, "#text/0", _serialize_guard($scope1_reason, 0))}
`);
+ _html(`${_text_resume($scope1_id, "#text/0", input.cell.label, _serialize_guard($scope1_reason, 0))}
`);
_serialize_if($scope1_reason, 0) && writeScope($scope1_id, {}, "__tests__/template.marko", "1:2");
}, $scope0_id) };
_set_serialize_reason(_serialize_guard($scope0_reason, 1));
const $childScope = _peek_scope_id();
Row.content({ cell: attrTag({ ...input.obj }) });
- _html(`added=${_sep($sg__input_obj)}${_escape(Object.getOwnPropertySymbols(input.obj).length)}${_el_resume($scope0_id, "#text/1", $sg__input_obj)}
`);
+ _html(`added=${_text_resume($scope0_id, "#text/1", Object.getOwnPropertySymbols(input.obj).length, _serialize_guard($scope0_reason, 0) * 2)}
`);
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { "#childScope/0": _serialize_if($scope0_reason, 1) && _existing_scope($childScope) }, "__tests__/template.marko", 0);
}, 1);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js
index 1547f0b14a7..eb1ea650d5b 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-lone-spread/__snapshots__/html.bundle.js
@@ -1,16 +1,16 @@
// template.marko
var template_default = _template("a", (input) => {
- const $scope0_reason = _scope_reason(), $sg__input_obj = _serialize_guard($scope0_reason, 0);
+ const $scope0_reason = _scope_reason();
const $scope0_id = _scope_id();
const Row = { content: _content("a0", (input) => {
const $scope1_id = _scope_id();
const $scope1_reason = _scope_reason();
- _html(`${_escape(input.cell.label)}${_el_resume($scope1_id, "a", _serialize_guard($scope1_reason, 0))}
`);
+ _html(`${_text_resume($scope1_id, "a", input.cell.label, _serialize_guard($scope1_reason, 0))}
`);
_serialize_if($scope1_reason, 0) && writeScope($scope1_id, {});
}, $scope0_id) };
_set_serialize_reason(_serialize_guard($scope0_reason, 1));
const $childScope = _peek_scope_id();
Row.content({ cell: attrTag({ ...input.obj }) });
- _html(`added=${_sep($sg__input_obj)}${_escape(Object.getOwnPropertySymbols(input.obj).length)}${_el_resume($scope0_id, "b", $sg__input_obj)}
`);
+ _html(`added=${_text_resume($scope0_id, "b", Object.getOwnPropertySymbols(input.obj).length, _serialize_guard($scope0_reason, 0) * 2)}
`);
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _serialize_if($scope0_reason, 1) && _existing_scope($childScope) });
}, 1);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js
index 7f9534403ca..f0e8b34a773 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.debug.js
@@ -1,8 +1,8 @@
// tags/child.marko
var child_default = _template("__tests__/tags/child.marko", (input) => {
- const $scope0_reason = _scope_reason(), $sg__input = _serialize_guard($scope0_reason, 0);
+ const $scope0_reason = _scope_reason();
const $scope0_id = _scope_id();
- _html(`${_sep($sg__input)}${_escape(JSON.stringify(input))}${_el_resume($scope0_id, "#text/0", $sg__input)}`);
+ _html(_text_resume($scope0_id, "#text/0", JSON.stringify(input), _serialize_guard($scope0_reason, 0) * 2));
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/tags/child.marko", 0);
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js
index 2a14dc66184..ab0c2c87b00 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-tag-params-spread-reference/__snapshots__/html.bundle.js
@@ -1,8 +1,8 @@
// tags/child.marko
var child_default = _template("b", (input) => {
- const $scope0_reason = _scope_reason(), $sg__input = _serialize_guard($scope0_reason, 0);
+ const $scope0_reason = _scope_reason();
const $scope0_id = _scope_id();
- _html(`${_sep($sg__input)}${_escape(JSON.stringify(input))}${_el_resume($scope0_id, "a", $sg__input)}`);
+ _html(_text_resume($scope0_id, "a", JSON.stringify(input), _serialize_guard($scope0_reason, 0) * 2));
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
});
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js
index e4b8f0b697c..f31d410d921 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.debug.js
@@ -3,7 +3,7 @@ var template_default = _template("__tests__/template.marko", (input) => {
_scope_reason();
const $scope0_id = _scope_id();
let count = 0;
- _html(`${_escape(count)}${_el_resume($scope0_id, "#text/1")} ${_el_resume($scope0_id, "#button/0")} `);
+ _html(`${_text_resume($scope0_id, "#text/1", count)} ${_el_resume($scope0_id, "#button/0")} `);
_script($scope0_id, "__tests__/template.marko_0");
writeScope($scope0_id, { count }, "__tests__/template.marko", 0, { count: "1:6" });
_resume_branch($scope0_id);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js
index 544774ad41a..69b27bc6043 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/html.bundle.js
@@ -3,7 +3,7 @@ var template_default = _template("a", (input) => {
_scope_reason();
const $scope0_id = _scope_id();
let count = 0;
- _html(`${_escape(count)}${_el_resume($scope0_id, "b")} ${_el_resume($scope0_id, "a")} `);
+ _html(`${_text_resume($scope0_id, "b", count)} ${_el_resume($scope0_id, "a")} `);
_script($scope0_id, "a0");
writeScope($scope0_id, { c: count });
_resume_branch($scope0_id);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/writes.debug.html
index 83bce83b296..7c21eb1c643 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/attr-value-with-dollar-brace/__snapshots__/writes.debug.html
@@ -1,4 +1,4 @@
-0 0
+
+
-0
+
+0
-0
+
+0
1
+ id=sync>1
1
+ id=sync>1
-0
+0
-0
+0
-x: 0
+x: 0
-x: 0
+x: 0
child:
- 0
+ 0
child: 0
+ class=child>child: 0
-x: 1
+x: 1
-x: 1
+x: 1
- 1
+ 1
- 1
+ 1
-x: 1
+x: 1
-x: 1
+x: 1
child:?
+ class=child>child:?
child:?
+ class=child>child:?
-0 Inc
+0 Inc
-0 Inc
+0 Inc
-0 0
+0 0
-0 0
+0 0
0
+ class=a>0
0
+ class=b>0
0
+ class=a>0
0
+ class=b>0
child:1
+ id=child>child:1
grand:1:
- 1
+ id=grand>grand:1:
+ 1
child:1
+ id=child>child:1
grand:1:1
+ id=grand>grand:1:1
child:shared
+ class=child>child:shared
grand:shared
+ class=grand>grand:shared
child:shared
+ class=child>child:shared
grand:shared
+ class=grand>grand:shared
child:shared
+ class=child>child:shared
grand:shared
+ class=grand>grand:shared
child:shared
+ class=child>child:shared
grand:shared
+ class=grand>grand:shared
grand:shared
+ class=grand>grand:shared
grand:shared
+ class=grand>grand:shared
0:
- 0
+ class=child>0:
+ 0
0: 0
+ class=child>0: 0
hi
+ class=child>hi
hi
+ class=child>hi
-1 click
+1 click
-1 click
+1 click
reordered:
- 0
+ 0
reordered:0
+ class=reordered>reordered:0
count:
- 1
+ 1
count:
- 1
+ 1
hi
+ class=child>hi
hi
+ class=child>hi
count:
- 0
+ 0
count:
- 0
+ 0
-1 2
+1 2
-1 2
+1 2
s:?
+ class=s>s:?
b:?
+ class=b>b:?
s:?
+ class=s>s:?
b:?
+ class=b>b:?
1 10
+ id=a>110
1 10
+ id=a>110
x:
- 1
+ 1
x:
- 1
+ 1
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/writes.html
new file mode 100644
index 00000000000..c77dd1b5fb9
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/__snapshots__/writes.html
@@ -0,0 +1,15 @@
+d
tailset
+
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/sizes.json
new file mode 100644
index 00000000000..5942885906c
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/sizes.json
@@ -0,0 +1,12 @@
+{
+ "dom": {
+ "template.marko.page.mjs": {
+ "min": 4164,
+ "brotli": 1964
+ }
+ },
+ "html": {
+ "min": 479,
+ "brotli": 309
+ }
+}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/template.marko b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/template.marko
new file mode 100644
index 00000000000..8b8a8cd2482
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/template.marko
@@ -0,0 +1,7 @@
+
+d
+-- ${a}
+${a}
+${a} tail
+ ${a}
+set
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/test.ts b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/test.ts
new file mode 100644
index 00000000000..882fa48d359
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-empty-positions/test.ts
@@ -0,0 +1,9 @@
+import type { TestConfig } from "../../main.test";
+
+function click(document: Document) {
+ document.querySelector(`button`)!.click();
+}
+
+export const config: TestConfig = {
+ steps: [{}, click],
+};
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/dom.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/dom.bundle.debug.js
new file mode 100644
index 00000000000..0e464ac6337
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/dom.bundle.debug.js
@@ -0,0 +1,12 @@
+// template.marko
+const $template = "
set ";
+const $walks = "D l b";
+const $value = /*@__PURE__*/ _let("value/2", ($scope) => _html($scope, $scope.value, "#text/0"));
+const $setup__script = _script("__tests__/template.marko_0", ($scope) => _on($scope["#button/1"], "click", function() {
+ $value($scope, "c ");
+}));
+function $setup($scope) {
+ $value($scope, "a b c");
+ $setup__script($scope);
+}
+var template_default = /*@__PURE__*/ _template("__tests__/template.marko", $template, $walks, $setup);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/dom.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/dom.bundle.js
new file mode 100644
index 00000000000..a086a866cc9
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/dom.bundle.js
@@ -0,0 +1,5 @@
+// template.marko
+const $value = /*@__PURE__*/ _let(2, ($scope) => _html($scope, $scope.c, "a"));
+const $setup__script = _script("a0", ($scope) => _on($scope.b, "click", function() {
+ $value($scope, "c ");
+}));
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js
new file mode 100644
index 00000000000..927795368d3
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.debug.js
@@ -0,0 +1,10 @@
+// template.marko
+var template_default = _template("__tests__/template.marko", (input) => {
+ _scope_reason();
+ const $scope0_id = _scope_id();
+ let value = "a b c";
+ _html(`${_html_resume($scope0_id, "#text/0", value)}
set ${_el_resume($scope0_id, "#button/1")}`);
+ _script($scope0_id, "__tests__/template.marko_0");
+ writeScope($scope0_id, {}, "__tests__/template.marko", 0);
+ _resume_branch($scope0_id);
+}, 1);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js
new file mode 100644
index 00000000000..dd7f5c44f97
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/html.bundle.js
@@ -0,0 +1,9 @@
+// template.marko
+var template_default = _template("a", (input) => {
+ _scope_reason();
+ const $scope0_id = _scope_id();
+ _html(`${_html_resume($scope0_id, "a", "a b c")}
set ${_el_resume($scope0_id, "b")}`);
+ _script($scope0_id, "a0");
+ writeScope($scope0_id, {});
+ _resume_branch($scope0_id);
+}, 1);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/render.debug.md b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/render.debug.md
new file mode 100644
index 00000000000..3e3eac33f45
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/render.debug.md
@@ -0,0 +1,35 @@
+# Render
+```html
+
+ a
+
+ b
+
+ c
+
+
+ set
+
+```
+
+# Update
+```js
+document.querySelector(`button`).click();
+```
+```html
+
+
+ c
+
+
+
+ set
+
+```
+## Change
+```
+INSERT: div > em
+REMOVE: div > em + ::text("a ")
+REMOVE: div > em + strong
+REMOVE: div > em + ::text(" c")
+```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/render.md b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/render.md
new file mode 100644
index 00000000000..3e3eac33f45
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/render.md
@@ -0,0 +1,35 @@
+# Render
+```html
+
+ a
+
+ b
+
+ c
+
+
+ set
+
+```
+
+# Update
+```js
+document.querySelector(`button`).click();
+```
+```html
+
+
+ c
+
+
+
+ set
+
+```
+## Change
+```
+INSERT: div > em
+REMOVE: div > em + ::text("a ")
+REMOVE: div > em + strong
+REMOVE: div > em + ::text(" c")
+```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/writes.debug.html
new file mode 100644
index 00000000000..a9fcabbc718
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/writes.debug.html
@@ -0,0 +1,9 @@
+a b c
+set
+
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/writes.html
new file mode 100644
index 00000000000..6ed554fa8d3
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/__snapshots__/writes.html
@@ -0,0 +1,7 @@
+a b c
+set
+
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/sizes.json
new file mode 100644
index 00000000000..0a9b89a553b
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/sizes.json
@@ -0,0 +1,12 @@
+{
+ "dom": {
+ "template.marko.page.mjs": {
+ "min": 3163,
+ "brotli": 1533
+ }
+ },
+ "html": {
+ "min": 384,
+ "brotli": 258
+ }
+}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/template.marko b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/template.marko
new file mode 100644
index 00000000000..82818f68ed6
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/template.marko
@@ -0,0 +1,3 @@
+b c"/>
+$!{value}
+set
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/test.ts b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/test.ts
new file mode 100644
index 00000000000..882fa48d359
--- /dev/null
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-html-multi-node/test.ts
@@ -0,0 +1,9 @@
+import type { TestConfig } from "../../main.test";
+
+function click(document: Document) {
+ document.querySelector(`button`)!.click();
+}
+
+export const config: TestConfig = {
+ steps: [{}, click],
+};
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js
index dfbbba4cfa8..42b44baced0 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.debug.js
@@ -2,6 +2,6 @@
var template_default = _template("__tests__/template.marko", (input) => {
const $scope0_reason = _scope_reason(), $sg__input_x = _serialize_guard($scope0_reason, 0);
const $scope0_id = _scope_id();
- _html(`${_sep($sg__input_x)}${_escape(input.x)}${_el_resume($scope0_id, "#text/0", $sg__input_x)}
${_escape(input.x)}${_el_resume($scope0_id, "#text/1", $sg__input_x)}
`);
+ _html(`${_text_resume($scope0_id, "#text/0", input.x, $sg__input_x * 2)}
${_text_resume($scope0_id, "#text/1", input.x, $sg__input_x)}
`);
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {}, "__tests__/template.marko", 0);
}, 1);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js
index 8d5318a12fa..1ea2ec3cc82 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-empty/__snapshots__/html.bundle.js
@@ -2,6 +2,6 @@
var template_default = _template("a", (input) => {
const $scope0_reason = _scope_reason(), $sg__input_x = _serialize_guard($scope0_reason, 0);
const $scope0_id = _scope_id();
- _html(`${_sep($sg__input_x)}${_escape(input.x)}${_el_resume($scope0_id, "a", $sg__input_x)}
${_escape(input.x)}${_el_resume($scope0_id, "b", $sg__input_x)}
`);
+ _html(`${_text_resume($scope0_id, "a", input.x, $sg__input_x * 2)}
${_text_resume($scope0_id, "b", input.x, $sg__input_x)}
`);
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
}, 1);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js
index 9fd403f4587..1b0d645213a 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.debug.js
@@ -3,7 +3,7 @@ var template_default = _template("__tests__/template.marko", (input) => {
_scope_reason();
const $scope0_id = _scope_id();
let mounted = undefined;
- _html(`${mounted ? `${_escape(`${_to_text("A")}`)}B${_escape(`${_to_text(mounted && "C")}`)}D` : ""}${_el_resume($scope0_id, "#text/0")}
`);
+ _html(`${_text_resume($scope0_id, "#text/0", mounted ? `${_to_text("A")}B${_to_text(mounted && "C")}D` : "")}
`);
_script($scope0_id, "__tests__/template.marko_0");
writeScope($scope0_id, {}, "__tests__/template.marko", 0);
_resume_branch($scope0_id);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js
index 5fff07c3d49..b4ce7905454 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/html.bundle.js
@@ -2,7 +2,7 @@
var template_default = _template("a", (input) => {
_scope_reason();
const $scope0_id = _scope_id();
- _html(`${_el_resume($scope0_id, "a")}
`);
+ _html(`${_text_resume($scope0_id, "a", "")}
`);
_script($scope0_id, "a0");
writeScope($scope0_id, {});
_resume_branch($scope0_id);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/writes.debug.html
index 565a97aaf7c..330592b6c12 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/placeholder-static-multiple/__snapshots__/writes.debug.html
@@ -1,4 +1,4 @@
-
+
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/writes.html
index 0bc11ce645d..7e4086a0361 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/writes.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/__snapshots__/writes.html
@@ -1,6 +1,6 @@
-inc
+inc
-LOADING...
+LOADING...
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/sizes.json
index 58a3cdea017..dc54d24cb97 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-async/sizes.json
@@ -1,12 +1,12 @@
{
"dom": {
"template.marko.page.mjs": {
- "min": 8906,
- "brotli": 3886
+ "min": 8869,
+ "brotli": 3874
}
},
"html": {
"min": 1144,
- "brotli": 656
+ "brotli": 655
}
}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js
index 50e30eef368..f07e3ee6cee 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.debug.js
@@ -8,9 +8,9 @@ var template_default = _template("__tests__/template.marko", (input) => {
_try($scope0_id, "#text/1", _content_resume("__tests__/template.marko_1*content", () => {
const $scope1_id = _scope_id();
_scope_reason();
- _html(`inc ${_el_resume($scope1_id, "#button/0")} -- ${_escape((() => {
+ _html(`inc ${_el_resume($scope1_id, "#button/0")} -- ${_text_resume($scope1_id, "#text/1", (() => {
if (clickCount > 1) throw new Error("ERROR!");
- })())}${_el_resume($scope1_id, "#text/1")}`);
+ })(), 2)}`);
_script($scope1_id, "__tests__/template.marko_1_clickCount#2");
_script($scope1_id, "__tests__/template.marko_1");
_subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "4:2"));
@@ -18,7 +18,7 @@ var template_default = _template("__tests__/template.marko", (input) => {
}, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_2*content", (err) => {
const $scope2_reason = _scope_reason();
const $scope2_id = _scope_id();
- _html(`${_escape(err)}${_el_resume($scope2_id, "#text/0", _serialize_guard($scope2_reason, 0))}`);
+ _html(_text_resume($scope2_id, "#text/0", err, _serialize_guard($scope2_reason, 0)));
_serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "12:4");
}, $scope0_id) }) });
writeScope($scope0_id, {
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js
index cc7d84faa16..9b066f371fc 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/html.bundle.js
@@ -8,7 +8,7 @@ var template_default = _template("a", (input) => {
_try($scope0_id, "b", _content_resume("a1", () => {
const $scope1_id = _scope_id();
_scope_reason();
- _html(`inc ${_el_resume($scope1_id, "a")} -- ${_escape(void 0)}${_el_resume($scope1_id, "b")}`);
+ _html(`inc ${_el_resume($scope1_id, "a")} -- ${_text_resume($scope1_id, "b", void 0, 2)}`);
_script($scope1_id, "a2");
_script($scope1_id, "a3");
_subscribe($clickCount__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }));
@@ -16,7 +16,7 @@ var template_default = _template("a", (input) => {
}, $scope0_id), { catch: attrTag({ content: _content_resume("a0", (err) => {
const $scope2_reason = _scope_reason();
const $scope2_id = _scope_id();
- _html(`${_escape(err)}${_el_resume($scope2_id, "a", _serialize_guard($scope2_reason, 0))}`);
+ _html(_text_resume($scope2_id, "a", err, _serialize_guard($scope2_reason, 0)));
_serialize_if($scope2_reason, 0) && writeScope($scope2_id, {});
}, $scope0_id) }) });
writeScope($scope0_id, {
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.debug.html
index 50093036733..ce6ca84980c 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.debug.html
@@ -1,18 +1,18 @@
-
inc
---
-
+
inc
+--
+
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.html b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.html
index 288eaf50210..8cd8b744471 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.html
@@ -1,14 +1,14 @@
-
inc --
-
-
+
inc --
+
+
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/sizes.json b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/sizes.json
index 0722e380c57..051afd0eb19 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/sizes.json
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/sizes.json
@@ -1,12 +1,12 @@
{
"dom": {
"template.marko.page.mjs": {
- "min": 7011,
- "brotli": 3167
+ "min": 6974,
+ "brotli": 3161
}
},
"html": {
- "min": 460,
- "brotli": 312
+ "min": 457,
+ "brotli": 311
}
}
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js
index 647266422af..3de167d34e4 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.debug.js
@@ -14,7 +14,7 @@ var template_default = _template("__tests__/template.marko", (input) => {
}, $scope0_id), { catch: attrTag({ content: _content_resume("__tests__/template.marko_2*content", (err) => {
const $scope2_reason = _scope_reason();
const $scope2_id = _scope_id();
- _html(`${_escape(err.message)}${_el_resume($scope2_id, "#text/0", _serialize_guard($scope2_reason, 0))}`);
+ _html(_text_resume($scope2_id, "#text/0", err.message, _serialize_guard($scope2_reason, 0)));
_serialize_if($scope2_reason, 0) && writeScope($scope2_id, {}, "__tests__/template.marko", "7:4");
}, $scope0_id) }) });
_html(`
${_el_resume($scope0_id, "#div/2")}`);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js
index 7df53be83f8..595dac8c0d3 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/html.bundle.js
@@ -14,7 +14,7 @@ var template_default = _template("a", (input) => {
}, $scope0_id), { catch: attrTag({ content: _content_resume("a0", (err) => {
const $scope2_reason = _scope_reason();
const $scope2_id = _scope_id();
- _html(`${_escape(err.message)}${_el_resume($scope2_id, "a", _serialize_guard($scope2_reason, 0))}`);
+ _html(_text_resume($scope2_id, "a", err.message, _serialize_guard($scope2_reason, 0)));
_serialize_if($scope2_reason, 0) && writeScope($scope2_id, {});
}, $scope0_id) }) });
_html(`
${_el_resume($scope0_id, "c")}`);
diff --git a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/writes.debug.html b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/writes.debug.html
index 06bcd084e26..4134de18bc3 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/writes.debug.html
+++ b/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch/__snapshots__/writes.debug.html
@@ -1,5 +1,5 @@
-
ERROR!
-
+
ERROR!
+