[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
Fri Feb 10 03:57:16 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:  Accessibility            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch ux-feedback  |
-------------------------------------+------------------------------

Comment (by ericlewis):

 Replying to [comment:11 travisnorthcutt]:
 > So, perhaps a "display on site" checkbox?

 IMHO a lot of end users would be confused at the existence of a checkbox
 "display title of image in HTML element on site," or however it ended up
 being phrased.

 It sounds like the title attribute should not exist if the alt is an empty
 string. Perhaps a conditional editing of attributes can be employed as
 such:

 {{{
 if ( ! alt && title ) {
     alt = title; title = "";
 }
 }}}

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


More information about the wp-trac mailing list