|
|
@ -243,8 +243,8 @@ export default class Element extends Node {
|
|
|
|
validate() {
|
|
|
|
validate() {
|
|
|
|
if (this.component.var_lookup.has(this.name) && this.component.var_lookup.get(this.name).imported) {
|
|
|
|
if (this.component.var_lookup.has(this.name) && this.component.var_lookup.get(this.name).imported) {
|
|
|
|
this.component.warn(this, {
|
|
|
|
this.component.warn(this, {
|
|
|
|
code: 'lowercase-component-name',
|
|
|
|
code: 'component-name-lowercase',
|
|
|
|
message: `A lowercase tag <${this.name}> will be treated as a regular HTML element`
|
|
|
|
message: `<${this.name}> will be treated as an HTML element unless it begins with a capital letter`
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|