-```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/csr.expected.md
index 42ae3e515a..76758a2acb 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/csr.expected.md
@@ -43,9 +43,9 @@ container.querySelector("button").click();
INSERT #text
REMOVE #text in div
INSERT div/#text
-REMOVE div after #text
-REMOVE span after #text
-REMOVE p after #text
+REMOVE div after div
+REMOVE span after div
+REMOVE p after div
```
# Render
@@ -76,31 +76,7 @@ container.querySelector("button").click();
INSERT div1
INSERT span
INSERT p
-REMOVE #text after p
+REMOVE #text after div0
REMOVE #text in div0
INSERT div0/#text
-```
-
-# Render
-```js
-container.querySelector("button").click();
-```
-```html
-
-
- destroyed
-
-
-```
-
-# Mutations
-```
-INSERT #text
-REMOVE #text in div
-INSERT div/#text
-REMOVE div after #text
-REMOVE span after #text
-REMOVE p after #text
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume-sanitized.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume-sanitized.expected.md
index 2d3f479caf..74b3355e44 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume-sanitized.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume-sanitized.expected.md
@@ -53,17 +53,3 @@ container.querySelector("button").click();
c
```
-
-
-# Render
-```js
-container.querySelector("button").click();
-```
-```html
-
-
- destroyed
-
-```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume.expected.md
index 3712c08e76..77e878b7f5 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/__snapshots__/resume.expected.md
@@ -66,10 +66,10 @@ REMOVE html/body/#comment2 after html/body/#comment3
INSERT html/body/#comment2
REMOVE #text in html/body/div
INSERT html/body/div/#text
-REMOVE #comment after html/body/#comment2
-REMOVE div after html/body/#comment2
-REMOVE span after html/body/#comment2
-REMOVE p after html/body/#comment2
+REMOVE #comment after html/body/#comment1
+REMOVE div after html/body/#comment1
+REMOVE span after html/body/#comment1
+REMOVE p after html/body/#comment1
```
# Render
@@ -110,42 +110,7 @@ container.querySelector("button").click();
INSERT html/body/div1
INSERT html/body/span
INSERT html/body/p
-REMOVE #comment after html/body/p
+REMOVE #comment after html/body/#comment1
REMOVE #text in html/body/div0
INSERT html/body/div0/#text
-```
-
-# Render
-```js
-container.querySelector("button").click();
-```
-```html
-
-
-
-
-
- destroyed
-
-
-
-
-
-
-
-```
-
-# Mutations
-```
-INSERT html/body/#comment2
-REMOVE #text in html/body/div
-INSERT html/body/div/#text
-REMOVE div after html/body/#comment2
-REMOVE span after html/body/#comment2
-REMOVE p after html/body/#comment2
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/test.ts b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/test.ts
index d7fdaf5d2d..bd30d73f0e 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/test.ts
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-shallow/test.ts
@@ -1,4 +1,4 @@
-export const steps = [{}, click, click, click];
+export const steps = [{}, click, click];
function click(container: Element) {
container.querySelector("button")!.click();
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/csr.expected.md
index 4e360d3005..44665d033f 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/csr.expected.md
@@ -92,7 +92,7 @@ Inner destroyed
INSERT div/div/#text
REMOVE #text in pre
INSERT pre/#text
-REMOVE p after div/div/#text
+REMOVE p after div/div/p
```
# Render
@@ -136,7 +136,7 @@ Middle destroyed
INSERT div/#text
REMOVE #text in pre
INSERT pre/#text
-REMOVE div after div/#text
+REMOVE div after div/p
```
# Render
@@ -176,7 +176,7 @@ Outer destroyed
INSERT #text
REMOVE #text in pre
INSERT pre/#text
-REMOVE div after #text
+REMOVE div after pre
```
# Render
@@ -296,12 +296,12 @@ Inner mounted
# Mutations
```
INSERT div
-REMOVE #text after div
+REMOVE #text after pre
INSERT div/div
-REMOVE #text after div/div
+REMOVE #text after div/p
UPDATE div/p/#text " " => "Outer"
INSERT div/div/p1
-REMOVE #text after div/div/p1
+REMOVE #text after div/div/p0
UPDATE div/div/p0/#text " " => "Middle"
UPDATE div/div/p1/#text " " => "Inner"
REMOVE #text in pre
@@ -359,5 +359,5 @@ REMOVE #text in pre
INSERT #text
REMOVE #text in pre
INSERT pre/#text
-REMOVE div after #text
+REMOVE div after pre
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/resume.expected.md
index 416c6c92cd..2a9546f3f7 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-deep/__snapshots__/resume.expected.md
@@ -131,7 +131,7 @@ REMOVE html/body/div/div/#comment1 after html/body/div/div/#comment2
INSERT html/body/div/div/#comment1
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
-REMOVE p after html/body/div/div/#comment1
+REMOVE p after html/body/div/div/#comment0
```
# Render
@@ -191,7 +191,7 @@ REMOVE html/body/div/#comment1 after div
INSERT html/body/div/#comment1
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
-REMOVE div after html/body/div/#comment1
+REMOVE div after html/body/div/#comment0
```
# Render
@@ -244,7 +244,7 @@ REMOVE html/body/#comment4 after div
INSERT html/body/#comment4
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
-REMOVE div after html/body/#comment4
+REMOVE div after html/body/#comment3
```
# Render
@@ -399,12 +399,12 @@ Inner mounted
# Mutations
```
INSERT html/body/div
-REMOVE #comment after html/body/div
+REMOVE #comment after html/body/#comment3
INSERT html/body/div/div
-REMOVE #text after html/body/div/div
+REMOVE #text after html/body/div/p
UPDATE html/body/div/p/#text " " => "Outer"
INSERT html/body/div/div/p1
-REMOVE #text after html/body/div/div/p1
+REMOVE #text after html/body/div/div/p0
UPDATE html/body/div/div/p0/#text " " => "Middle"
UPDATE html/body/div/div/p1/#text " " => "Inner"
REMOVE #text in html/body/pre
@@ -474,5 +474,5 @@ REMOVE #text in html/body/pre
INSERT #text
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
-REMOVE div after html/body/#comment4
+REMOVE div after html/body/#comment3
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/csr.expected.md
index 4f5468f4b6..7d82837b6c 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/csr.expected.md
@@ -40,7 +40,7 @@ destroyed
INSERT #text
REMOVE #text in pre
INSERT pre/#text
-REMOVE div after #text
+REMOVE div after pre
```
# Render
@@ -66,7 +66,7 @@ mounted
# Mutations
```
INSERT div
-REMOVE #text after div
+REMOVE #text after pre
REMOVE #text in pre
INSERT pre/#text
```
@@ -94,5 +94,5 @@ destroyed
INSERT #text
REMOVE #text in pre
INSERT pre/#text
-REMOVE div after #text
+REMOVE div after pre
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/resume.expected.md
index c0341a7b5b..033ced8dd9 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-same-scope/__snapshots__/resume.expected.md
@@ -60,7 +60,7 @@ REMOVE html/body/#comment2 after div
INSERT html/body/#comment2
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
-REMOVE div after html/body/#comment2
+REMOVE div after html/body/#comment1
```
# Render
@@ -95,7 +95,7 @@ mounted
# Mutations
```
INSERT html/body/div
-REMOVE #comment after html/body/div
+REMOVE #comment after html/body/#comment1
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
```
@@ -133,5 +133,5 @@ destroyed
INSERT html/body/#comment2
REMOVE #text in html/body/pre
INSERT html/body/pre/#text
-REMOVE div after html/body/#comment2
+REMOVE div after html/body/#comment1
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/csr.expected.md
index bdd4ce569e..45d21f0971 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/csr.expected.md
@@ -37,7 +37,7 @@ container.querySelector("button").click();
INSERT #text
REMOVE #text in div
INSERT div/#text
-REMOVE div after #text
+REMOVE div after div
```
# Render
@@ -60,7 +60,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT div1
-REMOVE #text after div1
+REMOVE #text after div0
REMOVE #text in div0
INSERT div0/#text
```
@@ -84,5 +84,5 @@ container.querySelector("button").click();
INSERT #text
REMOVE #text in div
INSERT div/#text
-REMOVE div after #text
+REMOVE div after div
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/resume.expected.md
index 7a0b039735..4a3f00fc4a 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/cleanup-single-child-if-shallow/__snapshots__/resume.expected.md
@@ -59,7 +59,7 @@ REMOVE html/body/#comment2 after html/body/#comment3
INSERT html/body/#comment2
REMOVE #text in html/body/div
INSERT html/body/div/#text
-REMOVE div after html/body/#comment2
+REMOVE div after html/body/#comment1
```
# Render
@@ -92,7 +92,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div1
-REMOVE #comment after html/body/div1
+REMOVE #comment after html/body/#comment1
REMOVE #text in html/body/div0
INSERT html/body/div0/#text
```
@@ -127,5 +127,5 @@ container.querySelector("button").click();
INSERT html/body/#comment2
REMOVE #text in html/body/div
INSERT html/body/div/#text
-REMOVE div after html/body/#comment2
+REMOVE div after html/body/#comment1
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/csr.expected.md
index be8722890c..94ac5a57ad 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/csr.expected.md
@@ -35,7 +35,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT table/tbody/tr
-REMOVE #text after table/tbody/tr
+REMOVE #text before table/tbody/tr
```
# Render
@@ -54,7 +54,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT table/tbody/#text
-REMOVE tr after table/tbody/#text
+REMOVE tr before table/tbody/#text
```
# Render
@@ -79,5 +79,5 @@ container.querySelector("button").click();
# Mutations
```
INSERT table/tbody/tr
-REMOVE #text after table/tbody/tr
+REMOVE #text before table/tbody/tr
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/resume.expected.md
index d893bb91dc..af1a9fb491 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/conditional-table-row/__snapshots__/resume.expected.md
@@ -51,7 +51,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/table/tbody/tr
-REMOVE #comment after html/body/table/tbody/tr
+REMOVE #comment before html/body/table/tbody/tr
```
# Render
@@ -81,7 +81,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/table/tbody/#comment
-REMOVE tr after html/body/table/tbody/#comment
+REMOVE tr before html/body/table/tbody/#comment
```
# Render
@@ -115,5 +115,5 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/table/tbody/tr
-REMOVE #comment after html/body/table/tbody/tr
+REMOVE #comment before html/body/table/tbody/tr
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/csr.expected.md
index 7c998678a4..5b86535d85 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/csr.expected.md
@@ -36,9 +36,9 @@ container.querySelector("button").click();
# Mutations
```
INSERT div/span
-REMOVE #text after div/span
+REMOVE #text before div/span
INSERT div/#text
-REMOVE span after div/#text
+REMOVE span after div/span
UPDATE div/span/#text " " => "1"
```
@@ -62,9 +62,9 @@ container.querySelector("button").click();
# Mutations
```
INSERT div/#text
-REMOVE span after div/#text
+REMOVE span before div/#text
INSERT div/span
-REMOVE #text after div/span
+REMOVE #text after div/#text
UPDATE div/span/#text " " => "1"
```
@@ -86,8 +86,8 @@ container.querySelector("button").click();
# Mutations
```
INSERT div/span
-REMOVE #text after div/span
+REMOVE #text before div/span
INSERT div/#text
-REMOVE span after div/#text
+REMOVE span after div/span
UPDATE div/span/#text " " => "1"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/resume.expected.md
index 2e3d6c7c69..30283f9ad9 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dollar-global-client/__snapshots__/resume.expected.md
@@ -53,10 +53,10 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div/span
-REMOVE #comment after html/body/div/span
+REMOVE #comment before html/body/div/span
REMOVE html/body/div/#comment0 after span
INSERT html/body/div/#comment0
-REMOVE span after html/body/div/#comment0
+REMOVE span after html/body/div/span
UPDATE html/body/div/span/#text " " => "1"
```
@@ -90,9 +90,9 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div/#comment0
-REMOVE span after html/body/div/#comment0
+REMOVE span before html/body/div/#comment0
INSERT html/body/div/span
-REMOVE #comment after html/body/div/span
+REMOVE #comment after html/body/div/#comment0
UPDATE html/body/div/span/#text " " => "1"
```
@@ -124,8 +124,8 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div/span
-REMOVE #comment after html/body/div/span
+REMOVE #comment before html/body/div/span
INSERT html/body/div/#comment0
-REMOVE span after html/body/div/#comment0
+REMOVE span after html/body/div/span
UPDATE html/body/div/span/#text " " => "1"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/csr.expected.md
index 8a10859485..f20830200b 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/csr.expected.md
@@ -31,7 +31,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT div
-REMOVE span after div
+REMOVE span after #comment
INSERT div/#text
UPDATE div[class] null => "A"
```
@@ -53,7 +53,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT span
-REMOVE div after span
+REMOVE div after #comment
INSERT span/#text
UPDATE span[class] null => "A"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/resume.expected.md
index 88c62aef6f..af15311b99 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-native-dynamic-tag/__snapshots__/resume.expected.md
@@ -45,7 +45,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div
-REMOVE span after html/body/div
+REMOVE span before html/body/div
INSERT html/body/div/#text
UPDATE html/body/div[class] null => "A"
```
@@ -76,7 +76,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/span
-REMOVE div after html/body/span
+REMOVE div before html/body/span
INSERT html/body/span/#text
UPDATE html/body/span[class] null => "A"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/csr.expected.md
index 36c9c352c6..692a6fb59f 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/csr.expected.md
@@ -27,7 +27,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT div
-REMOVE div after div
+REMOVE div after button
UPDATE div[id] null => "dynamic"
```
@@ -46,6 +46,6 @@ container.querySelector("button").click();
# Mutations
```
INSERT div
-REMOVE div after div
+REMOVE div after button
UPDATE div/#text1 "" => "dynamic"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/resume.expected.md
index 6a73ecdbc5..897ec261d6 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-native/__snapshots__/resume.expected.md
@@ -45,8 +45,8 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div
-REMOVE #comment after html/body/div
-REMOVE div after html/body/div
+REMOVE #comment after html/body/#comment0
+REMOVE div after html/body/#comment0
UPDATE html/body/div[id] null => "dynamic"
```
@@ -74,6 +74,6 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div
-REMOVE div after html/body/div
+REMOVE div after html/body/#comment0
UPDATE html/body/div/#text1 "" => "dynamic"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/csr.expected.md
index deca85e7c2..571d5ce4a7 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/csr.expected.md
@@ -27,7 +27,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT div
-REMOVE div after div
+REMOVE div after #comment
UPDATE div/#text1 "" => "3"
```
@@ -46,6 +46,6 @@ container.querySelector("button").click();
# Mutations
```
INSERT div
-REMOVE div after div
+REMOVE div after #comment
UPDATE div/#text1 "" => "3"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/resume.expected.md
index 1d24d6b3b0..ab662ed797 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/resume.expected.md
@@ -50,8 +50,8 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div
-REMOVE #comment after html/body/div
-REMOVE div after html/body/div
+REMOVE #comment before div
+REMOVE div before html/body/div
UPDATE html/body/div/#text1 "" => "3"
```
@@ -79,6 +79,6 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div
-REMOVE div after html/body/div
+REMOVE div before html/body/div
UPDATE html/body/div/#text1 "" => "3"
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/csr.expected.md
index 57c3dc1870..e6a5af448f 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/csr.expected.md
@@ -25,7 +25,7 @@ container.querySelector("button").click();
# Mutations
```
INSERT div
-REMOVE #text after div
+REMOVE #text after #comment
INSERT div/#text
```
@@ -42,5 +42,5 @@ Body Content
# Mutations
```
INSERT #text
-REMOVE div after #text
+REMOVE div after #comment
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/resume.expected.md
index 7253a91375..8273d6654b 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-sometimes-null/__snapshots__/resume.expected.md
@@ -45,8 +45,8 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/div
-REMOVE #comment after html/body/div
-REMOVE #text after html/body/div
+REMOVE #comment before #text
+REMOVE #text before html/body/div
INSERT html/body/div/#text
```
@@ -72,5 +72,5 @@ container.querySelector("button").click();
# Mutations
```
INSERT html/body/#text
-REMOVE div after html/body/#text
+REMOVE div before html/body/#text
```
\ No newline at end of file
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/csr.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/csr.expected.md
index 6203678c64..a9038ab13b 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/csr.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/csr.expected.md
@@ -62,7 +62,7 @@ container.querySelector("#changeTag").click();
# Mutations
```
INSERT span
-REMOVE div after span
+REMOVE div after #comment
INSERT span/button
UPDATE span/button/#text " " => "0"
```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/resume.expected.md b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/resume.expected.md
index 421eb912de..2ee1d6ae6a 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/resume.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-with-updating-body/__snapshots__/resume.expected.md
@@ -91,7 +91,7 @@ container.querySelector("#changeTag").click();
# Mutations
```
INSERT html/body/span
-REMOVE div after html/body/span
+REMOVE div before html/body/span
INSERT html/body/span/button
UPDATE html/body/span/button/#text " " => "0"
```
diff --git a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/csr-sanitized.expected.md b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/csr-sanitized.expected.md
index e7a5ca1647..5785751811 100644
--- a/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/csr-sanitized.expected.md
+++ b/packages/runtime-tags/src/__tests__/fixtures/for-by/__snapshots__/csr-sanitized.expected.md
@@ -6,26 +6,6 @@
>
firstsecondthird
-