[wp-trac] [WordPress Trac] #34583: Missing image alt attributes in core
WordPress Trac
noreply at wordpress.org
Wed Nov 4 17:28:48 UTC 2015
#34583: Missing image alt attributes in core
-------------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.3
Severity: normal | Keywords:
Focuses: ui, accessibility |
-------------------------------+-----------------------------
Searched for all the `<img` occurrences in core and found some places
where images miss an alt attribute. In some cases they're a minor issue I
guess. Though it's invalid HTML5, they don't seem to cause major
accessibility issues. In other cases the lack of the required alt
attribute is more important. For example, in Press This, when adding a
suggested image in the editor '''in HTML mode''' there's a chance users
will save the content "as is" and output in the front-end a bit of
invalid, not accessible, code:
[[Image(https://cldup.com/Ifx8Whn2Wd.png)]]
Worth noting as soon as users switch the editor to "Visual" mode, the alt
attribute will be automatically added.
Other cases are really minor, for example the "locked post" dialog
spinner:
[[Image(https://cldup.com/MDvMw3lnll.png)]]
Same for images used in the media templates, JavaScript templates, in
TinyMCE, and so on.
It would be pretty easy to fix all the missing alt attributes, it's
definitely not "rocket science", but I'm a bit unsure what to do here.
Just one big patch to fix everything (have a patch already) or maybe
specific tickets for each small bit of code that needs to be fixed? Any
feedback more than welcome.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34583>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list