web-accessibility
web-accessibility copied to clipboard
Attribute binding in Angular
Describe the bug In Angular we use attribute binding, but the plugin doesn't support it.
To Reproduce Steps to reproduce the behavior:
- Create a simple angular project
- Write this to template:
<img [src]="folder.Icon" [alt]="folder.Label">or this:<img [src]="folder.Icon" [attr.alt]="folder.Label"> - See error:
Provide an alt text that describes the image, or alt="" if image is purely decorative
Expected behavior I expect to accept and handle both of these definitions as a correct solutions, because these are Angular specific goog practices.
Visual Studio Code (please complete the following information):
- Version 1.55.2
Additional context This expected behavior expected with any attributes.