Skip to content

Commit aefd600

Browse files
authored
allow uppercase elements in strict mode (#1650)
1 parent 0774f9c commit aefd600

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/@glimmer/syntax/lib/v2/normalize.ts

-7
Original file line numberDiff line numberDiff line change
@@ -762,13 +762,6 @@ class ElementNormalizer {
762762
let inScope = variable[0] === '@' || variable === 'this' || this.ctx.hasBinding(variable);
763763

764764
if (this.ctx.strict && !inScope) {
765-
if (uppercase) {
766-
throw generateSyntaxError(
767-
`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()}>\``,
768-
loc
769-
);
770-
}
771-
772765
// In strict mode, values are always elements unless they are in scope
773766
return 'ElementHead';
774767
}

0 commit comments

Comments
 (0)