diff --git a/lib/rules/component-name-in-template-casing.js b/lib/rules/component-name-in-template-casing.js
index 5a1b991ed..524017a67 100644
--- a/lib/rules/component-name-in-template-casing.js
+++ b/lib/rules/component-name-in-template-casing.js
@@ -61,7 +61,7 @@ module.exports = {
return
}
- if (!utils.isCustomComponent(node)) {
+ if (!utils.isHtmlElementNode(node) || utils.isHtmlWellKnownElementName(node.rawName)) {
return
}
diff --git a/tests/lib/rules/component-name-in-template-casing.js b/tests/lib/rules/component-name-in-template-casing.js
index b2fc98711..a432ac79f 100644
--- a/tests/lib/rules/component-name-in-template-casing.js
+++ b/tests/lib/rules/component-name-in-template-casing.js
@@ -27,6 +27,8 @@ tester.run('component-name-in-template-casing', rule, {
'',
'',
'
',
+ 'Title
',
+ 'Title
',
// kebab-case
{
@@ -80,6 +82,23 @@ tester.run('component-name-in-template-casing', rule, {
`,
errors: ['Component name "the-component" is not PascalCase.']
},
+ {
+ code: `
+
+
+ content
+
+
+ `,
+ output: `
+
+
+ content
+
+
+ `,
+ errors: ['Component name "the-component" is not PascalCase.']
+ },
{
code: `