SVG sanitizing strips out ARIA attributes
-
Thanks for the great plugin!
I recently attended WordCamp Europe 2017, where Rian Rietveld gave a talk on accessibility. I tried to make my site more accessible following her instructions and used aXe accessibility checker to check for any warnings. It noted that the SVG files are missing alt text.
To overcome this, I followed CSS-Tricks article on accessible SVG and added
title
tag andaria-labelledby
attribute.Now, it seems the plugin strips out aria-labelledby completely. I believe this is part of the SVG sanitizing process.
Would it be possible to add a filter to add allowed attributes thus preventing filtering of these?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘SVG sanitizing strips out ARIA attributes’ is closed to new replies.