[wp-trac] [WordPress Trac] #18984: Accessibility: Title attribute should not be added to image markup by media.php

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 5 12:13:17 UTC 2012


#18984: Accessibility: Title attribute should not be added to image markup by
media.php
--------------------------+------------------------------
 Reporter:  esmi          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by GrahamArmfield):

 @esmi I'm afraid I have to disagree with your assertion that the alt
 attribute should not be used for purely decorative images.

 When an image is presented in a web page the alt attribute should always
 be present. But for decorative images it should be set to an empty string
 - ie:
 {{{
 alt=""
 }}}

 When screen readers encounter an image without any alt attribute the
 screen reader is likely to read the full path and filename of the image to
 the user - not always meaningful or useful. Using alt="" signals to
 assistive technology that the image should be ignored.

 Agree with you that setting of the alt attribute value should be down to
 the discretion of the author and judged on what the image represents or
 the meaning it conveys or where clicking on the image takes you.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18984#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list