marko 6.0.0-next.3.68 → 6.0.0-next.3.70

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/debug/dom.js CHANGED
@@ -290,7 +290,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
290
290
  const branchEnd = (branchId, reference) => {
291
291
  const branch = scopeLookup[branchId] ||= {};
292
292
  let endNode = reference;
293
- while (visitNodes.has(endNode = endNode.previousSibling)) ;
293
+ while (endNode.previousSibling !== branch.___startNode && visitNodes.has(endNode = endNode.previousSibling)) ;
294
294
  if (endNode === lastEndNode) {
295
295
  endNode = reference.parentNode.insertBefore(
296
296
  new Text(),
@@ -202,7 +202,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
202
202
  const branchEnd = (branchId, reference) => {
203
203
  const branch = scopeLookup[branchId] ||= {};
204
204
  let endNode = reference;
205
- while (visitNodes.has(endNode = endNode.previousSibling)) ;
205
+ while (endNode.previousSibling !== branch.___startNode && visitNodes.has(endNode = endNode.previousSibling)) ;
206
206
  if (endNode === lastEndNode) {
207
207
  endNode = reference.parentNode.insertBefore(
208
208
  new Text(),