We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-invalid-link-text
aria-label
Example
<a aria-label={{this.text}}/>
When using an aria-label with the value not set by a plain string it throws this error
TypeError: Cannot read properties of undefined (reading 'replace')
Which stems from this line
ember-template-lint/lib/rules/no-invalid-link-text.js
Line 14 in 29f240a
The problem is probably trying to use .chars
.chars
Line 38 in 29f240a
Log of ariaLabelAttr with <a aria-label={{t "translation"}}>
ariaLabelAttr
<a aria-label={{t "translation"}}>
{ type: 'AttrNode', name: 'aria-label', value: { type: 'MustacheStatement', path: PathExpressionImplV1 { original: 't', loc: [SourceSpan], type: 'PathExpression', this: false, data: false, _head: undefined, parts: [Array] }, params: [ [Object] ], hash: { type: 'Hash', pairs: [], loc: [SourceSpan] }, escaped: true, trusting: false, loc: SourceSpan { data: [HbsSpan], isInvisible: false }, strip: { open: false, close: false } }, loc: SourceSpan { data: HbsSpan { source: [Source], hbsPositions: [Object], kind: 'HbsPosition', _charPosSpan: null, _providedHbsLoc: null }, isInvisible: false }, isValueless: false, quoteType: null }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Example
When using an aria-label with the value not set by a plain string it throws this error
Which stems from this line
ember-template-lint/lib/rules/no-invalid-link-text.js
Line 14 in 29f240a
The problem is probably trying to use
.chars
ember-template-lint/lib/rules/no-invalid-link-text.js
Line 38 in 29f240a
Log of
ariaLabelAttr
with<a aria-label={{t "translation"}}>
The text was updated successfully, but these errors were encountered: