[wp-trac] [WordPress Trac] #26562: Remove title attributes: class-wp-admin-bar.php

WordPress Trac noreply at wordpress.org
Mon Aug 10 20:06:25 UTC 2015

#26562: Remove title attributes: class-wp-admin-bar.php
 Reporter:  joedolson                 |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Toolbar                   |     Version:  3.3
 Severity:  normal                    |  Resolution:
 Keywords:  2nd-opinion dev-feedback  |     Focuses:  accessibility
Changes (by morganestes):

 * keywords:  2nd-opinion => 2nd-opinion dev-feedback
 * version:   => 3.3
 * type:  defect (bug) => enhancement


 After looking through core, I found that the title attribute is used by
 Comments and Updates for noting counts, but didn't find any other uses.
 Since there's not another clear way to indicate the number within the
 context of what it's counting (number of updates available, types of
 comments, etc.), I think our options are to leave it in, or find another
 way to include the information.

 I'd prefer that we use `aria-label` instead of `title`, but understand
 we'd just be trading one potential abusive entry point for another. Even
 still, I vote for deprecating the title attribute and moving towards ARIA,
 especially since it's only two places in core to start with.

Ticket URL: <https://core.trac.wordpress.org/ticket/26562#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list