[wp-trac] Re: [WordPress Trac] #6368: Gallery display enhancements

WordPress Trac wp-trac at lists.automattic.com
Wed May 7 12:29:32 GMT 2008


#6368: Gallery display enhancements
-------------------------+--------------------------------------------------
 Reporter:  tellyworth   |        Owner:  matt    
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  2.5     
Component:  General      |      Version:          
 Severity:  normal       |   Resolution:          
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Changes (by alastc):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 I have to disagree with using definition lists in the gallery, a list of
 one does not make sense, either logically or how HTML is intended to be
 used.

 For example, assistive technologies like screen readers provide navigation
 short-cuts for lists (and headings, links etc). So you would get to a
 gallery, and oh, it's a list, great. I'm not that interested in the list
 so you try and skip over it... to another list, and another etc.

 The reason I re-opened this bug rather than just rely on [bug 6927] is
 that the 'itemtag' option doesn't allow you to use, for example, a proper
 list. I.e. where the gallery is a list (e.g. ul) and each item is a list
 item (li).

 Would it be possible to change this to defining the top item (e.g. dl, ul,
 div), and have the function automatically pick the right per-image
 element? (e.g. dt, li, div).

 At the moment I've hacked together a gallery shortcode replacement to
 output simplified code (including alt text), but it is a hack (I'm not a
 programmer), it would be better if the core could output accessible code
 by default.

 I included two examples of desired output here:
 http://alastairc.ac/notes/web-applications/wordpress/clean-gallery/#code-
 changes

 I'm happy to work on the front-end code stuff, but I'm not the person for
 PHP changes...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6368#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list