You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(template-no-invalid-interactive): switch shadowing detection to binding-based + normalize role (Copilot review)
- Byte-identical is-native-element: walk scope.variables up scope.upper
instead of matching scope.references, so a bare helper reference like
{{div}} that creates an entry in scope.references without binding an
identifier does not incorrectly shadow the native <div> tag.
Byte-identical to the carrier on PR #50.
- Add getRole() helper that trims, lowercases, and takes the first whitespace-
separated token — mirrors template-no-nested-interactive / template-no-
invalid-role normalization. isInteractive() now calls it so 'BUTTON',
' button ', and 'button link' all resolve to 'button' before INTERACTIVE_ROLES
lookup.
0 commit comments