From aefd600b98bfa32ecb6d3212fc3e5a89635df74d Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Wed, 6 Nov 2024 16:42:40 +0100 Subject: [PATCH] allow uppercase elements in strict mode (#1650) --- 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 741464a3ab..fb5b756307 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'; }