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-require-iframe-title): flag empty mustache string-literal titles
`<iframe title={{""}} />` and `<iframe title="{{""}}" />` previously slipped
past the rule because the mustache/concat branches only flagged the named
non-string literal types (boolean / null / undefined / number) and ignored
GlimmerStringLiteral entirely. jsx-a11y's getLiteralPropValue resolves the
empty-string literal and flags the case; this brings parity.
Refactor the title-string handling (trim / empty / duplicate) into a small
`processStaticTitle` helper, then call it from three places:
- the existing GlimmerTextNode branch (no behavior change),
- a new GlimmerStringLiteral sub-case in GlimmerMustacheStatement,
- a new GlimmerStringLiteral sub-case in single-part GlimmerConcatStatement.
The non-string-literal diagnostics (boolean/null/undefined/number → richer
'invalidTitleLiteral' message) are preserved unchanged. Added invalid
regression tests for both the bare-mustache and concat-of-string-literal
forms; replaced the previous valid pin of `title={{""}}` with a positive
case (`title={{"My frame"}}`) to keep coverage of the resolution path.
0 commit comments