Skip to content

Commit b25bc35

Browse files
fix(core): drop comments from the template lookup
The comment ratchet allows no net rise in a file's comment share; the PR description carries the explanation. — Jerrai
1 parent 17c99b7 commit b25bc35

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎packages/core/src/compiler/htmlDocument.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export interface SceneRootLookup {
2222
hasLiveRoot: boolean;
2323
}
2424

25-
// linkedom has no inert <template> content, so the template's innerHTML is re-parsed.
26-
// Elements outside the template are the document's live DOM.
2725
export function locateSceneRoot(html: string): SceneRootLookup {
2826
const { document } = parseHTML(html);
2927
const template = document.querySelector("template");
@@ -35,7 +33,6 @@ export function locateSceneRoot(html: string): SceneRootLookup {
3533
return { root, hasTemplate: true, hasLiveRoot: liveRoot !== null };
3634
}
3735

38-
/** A scene file whose composition root exists only inside a <template>, with no live root beside it. */
3936
export function isTemplateEntry(html: string): boolean {
4037
const { root, hasTemplate, hasLiveRoot } = locateSceneRoot(html);
4138
return hasTemplate && root !== null && !hasLiveRoot;

0 commit comments

Comments
 (0)