diff --git a/packages/qwik/src/server/v2-ssr-container.ts b/packages/qwik/src/server/v2-ssr-container.ts index 8928d0f18e33..6152b778af68 100644 --- a/packages/qwik/src/server/v2-ssr-container.ts +++ b/packages/qwik/src/server/v2-ssr-container.ts @@ -126,9 +126,9 @@ class StringBufferWriter { } } -interface ContainerElementFrame { +interface ElementFrame { tagNesting: TagNesting; - parent: ContainerElementFrame | null; + parent: ElementFrame | null; /** Element name. */ elementName: string; /** @@ -177,7 +177,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer { private currentComponentNode: ISsrNode | null = null; private styleIds = new Set(); - private currentElementFrame: ContainerElementFrame | null = null; + private currentElementFrame: ElementFrame | null = null; private renderTimer: ReturnType; /** @@ -980,11 +980,11 @@ class SSRContainer extends _SharedContainer implements ISSRContainer { if (!this.currentElementFrame) { tagNesting = initialTag(tag); } else { - let frame: ContainerElementFrame | null = this.currentElementFrame; + let frame: ElementFrame | null = this.currentElementFrame; const previousTagNesting = frame!.tagNesting; tagNesting = isTagAllowed(previousTagNesting, tag); if (tagNesting === TagNesting.NOT_ALLOWED) { - const frames: ContainerElementFrame[] = []; + const frames: ElementFrame[] = []; while (frame) { frames.unshift(frame); frame = frame.parent; @@ -1016,7 +1016,7 @@ class SSRContainer extends _SharedContainer implements ISSRContainer { } } } - const frame: ContainerElementFrame = { + const frame: ElementFrame = { tagNesting: tagNesting, parent: this.currentElementFrame, elementName: tag,