Skip to content

Fix template-no-shadowed-elements: align HTML-element detection with upstream#2695

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

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

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

Summary

  • Replaces static html-tags package check with inverse-of-isAngleBracketComponent logic
  • Custom elements are correctly excluded from shadowing checks
  • Aligns with upstream: any lowercase local block-param invocation is flagged, not just names in a static list

Test plan

  • <my-element as |x|><x /></my-element> (custom element block param) — not flagged
  • <FooBar as |foo|><foo /></FooBar> → flagged (shadows potential <foo> element)
  • <SomeComponent as |div|><div /></SomeComponent> → flagged

…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 from shadowing checks.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 16:23
@johanrd johanrd force-pushed the day_fix/template-no-shadowed-elements branch from 1c9b80a to 7eb499b 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