From fbe1f8921878afd2e08e8b2ad5febf54fd005148 Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Wed, 6 Nov 2024 13:36:16 +0100 Subject: [PATCH] allow uppercase elements in strict mode --- packages/@glimmer/syntax/lib/v2/normalize.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/@glimmer/syntax/lib/v2/normalize.ts b/packages/@glimmer/syntax/lib/v2/normalize.ts index 741464a3a..fb5b75630 100644 --- a/packages/@glimmer/syntax/lib/v2/normalize.ts +++ b/packages/@glimmer/syntax/lib/v2/normalize.ts @@ -762,13 +762,6 @@ class ElementNormalizer { let inScope = variable[0] === '@' || variable === 'this' || this.ctx.hasBinding(variable); if (this.ctx.strict && !inScope) { - if (uppercase) { - throw generateSyntaxError( - `Attempted to invoke a component that was not in scope in a strict mode template, \`<${variable}>\`. If you wanted to create an element with that name, convert it to lowercase - \`<${variable.toLowerCase()}>\``, - loc - ); - } - // In strict mode, values are always elements unless they are in scope return 'ElementHead'; }