From 28a7549b848af2d7665f2f220a171ea2b450490d Mon Sep 17 00:00:00 2001 From: Stephen Date: Fri, 20 Sep 2024 22:36:06 +0200 Subject: [PATCH] Comments --- modules/template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/template.js b/modules/template.js index 85c3d55..9413cd0 100644 --- a/modules/template.js +++ b/modules/template.js @@ -139,8 +139,8 @@ export default class Literal { const id = identify(template, 'literal-'); const options = { nostrict: template.hasAttribute && template.hasAttribute('nostrict') }; - // Compile before cloning node – if template has compile errors in DEBUG - // mode they are inserted into the template directly + // Compile before cloning because where template has compile errors they + // are inserted into the content and should be cloned const renderers = Literal.compile(id, template.content, options); const fragment = getContextFragment(element, template);