Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Sep 20, 2024
1 parent 699059f commit 28a7549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 28a7549

Please sign in to comment.