Comments (11)
Your reply was my first thought too but this isn't a highly debatable point if you read the standards for accessibility. It hasn't got anything to do with our considerations, it's going on the standards set by the accessibility community.
Here's another link for you: https://dequeuniversity.com/rules/axe/1.1/image-alt
Ensure all informative
elements have short, descriptive alternate text and all decorative
elements have empty alt attributes
from dxa-web-application-dotnet.
I have to side with @RyanDurkin on this one - looks like it's 1) a small change and 2) correct from the standards compliance point of view (i.e., tags for which there is no ALT content should have it empty rather than absent)
from dxa-web-application-dotnet.
https://jira.sdl.com/browse/TSI-2891
from dxa-web-application-dotnet.
I think this is a highly debatable point, I don't consider an empty alt tag more accessible than no alt tag, so the accessibility failure should rather be fixed by supplying an alternate text for the image if you ask me.
from dxa-web-application-dotnet.
I have seen the standards, but the debatable part is how much support for the standard you want built in, since as soon as you supply an alternate text, we support the standard, there is no requirement in the standard to have empty alt attributes, so you can just make sure there is content for them ;)
from dxa-web-application-dotnet.
there is no requirement in the standard to have empty alt attributes
I just don't get what you're saying there? I've supplied two links stating that they must have empty alt attributes?
from dxa-web-application-dotnet.
That is only if there is no content. What I'm saying is: just make sure there is content, because that is actually what accessibility is all about. When there is content, you don't need empty attributes.
from dxa-web-application-dotnet.
"Just make sure there is content" is a ridiculous reply. I can't believe I'm having to fight to get this simple change in. Here's another link for you and then I guess I'll give up: https://www.w3.org/TR/WCAG20-TECHS/H67.html
from dxa-web-application-dotnet.
Just to make it a bit more concrete: imagine you are a blind person using a screen reader and it keeps reading out stuff like "top left decorative corner".
from dxa-web-application-dotnet.
@DominicCronin Good point.
Let's stick with the standards indeed.
I guess that <img src="image.jpg">
means: we did not think about an alt text. I wonder what the screen reader would do with this tag, maybe it does read it out with the filename from the search or so.
And then <img src="image.jpg" alt="">
means: this is a decorative image, it does not contain content. So don't read it out at all.
from dxa-web-application-dotnet.
Fixed in DXA 1.8 and 2.0
from dxa-web-application-dotnet.
Related Issues (20)
- Sdl.Web.Common.Models.PageModel.GetXpmMarkup() calls unused XpmMetadata HOT 2
- DXA1.6 web solution (dxa-web-application-dotnet-DXA_1.6_Release.zip) HOT 1
- Language selector URL does not expect null page id HOT 2
- Use precompiled views HOT 1
- Have DXA sources in a symbol server HOT 2
- Only possible to embedded MediaItem entities in Rich Text fragments HOT 2
- Component Link mapping fails after link depth reached in web application. HOT 2
- Model Service (R2) ComponentTemplate missing from DCP(s) HOT 3
- ModelServiceClient ArgumentNullException crash HOT 2
- HtmlHelper null pointer exceptions HOT 3
- Ambiguous DXA exception for PCA DXA model addon
- Keyword Model extensions are not supported without a Metadata Schema
- RichText model extensions are not supported
- Output Cache is caching even if there is an error on the page HOT 1
- can DXA Container Framework be extended to support DXA 2.2 on Tridion 9/9.1
- Images with spaces return 404
- BinaryFileManager - StripDimensions UrlDecode ran only when no dimensions HOT 1
- MimeMapping.GetMimeMapping returns wrong mime types
- reuse HttpClient object / SNAT port exhaustion HOT 1
- Outputcache empty content after redirect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dxa-web-application-dotnet.