Skip to content

Fix template-no-arguments-for-html-elements: align HTML-element detection with upstream#2687

Open
johanrd wants to merge 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-no-arguments-for-html-elements
Open

Fix template-no-arguments-for-html-elements: align HTML-element detection with upstream#2687
johanrd wants to merge 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-no-arguments-for-html-elements

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

Summary

  • Replaces static html-tags package check with the inverse-of-isAngleBracketComponent logic from upstream
  • Custom elements (<my-element @foo="x">) are no longer false-positively flagged
  • Matches upstream's semantics: only tags without : / . / @ / uppercase / - are treated as plain HTML elements

Test plan

  • <my-element @foo="x"> → valid (custom element, not HTML)
  • <NS.Foo @bar="baz"> → valid (namespaced component)
  • <div @foo="x"> → still flagged

…tion with upstream

Replace static htmlTags package check with inverse-of-component-detection
(reject tags with : / . / uppercase / @ / -). Matches upstream's
isAngleBracketComponent semantics. Custom elements are now correctly
excluded.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 16:09
@johanrd johanrd force-pushed the day_fix/template-no-arguments-for-html-elements branch from 2ff4253 to 3118f91 Compare April 13, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant