mvdschee / web-accessibility

A Visual Studio Extension for Web accessibility
https://marketplace.visualstudio.com/items?itemName=MaxvanderSchee.web-accessibility
MIT License
70 stars 12 forks source link

Attribute binding in Angular #47

Open netdjw opened 3 years ago

netdjw commented 3 years ago

Describe the bug In Angular we use attribute binding, but the plugin doesn't support it.

To Reproduce Steps to reproduce the behavior:

  1. Create a simple angular project
  2. Write this to template: <img [src]="folder.Icon" [alt]="folder.Label"> or this: <img [src]="folder.Icon" [attr.alt]="folder.Label">
  3. 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):

Additional context This expected behavior expected with any attributes.