web-accessibility icon indicating copy to clipboard operation
web-accessibility copied to clipboard

Support single quotes in html templates

Open ixevix opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. We are using single quotes in our ejs template to work around it breaking when we serialize it into JSON. The Web Accessibility extension still complains about for example the alt text missing though it's there, it's just using single quotes.

Describe the solution you'd like Support single quotes or allow it to be toggled in options.

ixevix avatar May 28 '20 13:05 ixevix

Actually looking at the server code seems that the regexp that alt is using has hardcoded the double quotes. Other tags don't seem to do this so this might just be a bug.

ixevix avatar May 29 '20 15:05 ixevix

He @ixevix will look in to how I can fix this, might create a lot of duplicated code so will check how I can get around that issue.

mvdschee avatar Sep 30 '20 19:09 mvdschee

Any news on this issue? We use JavaScript Standard Style which enforces single quotes, this conflict causes all img tags in jsx files to always show an error no matter what.

alevann avatar Jul 26 '22 20:07 alevann