[wp-trac] [WordPress Trac] #24766: Title attributes galore. They serve no useful purpose.

WordPress Trac noreply at wordpress.org
Tue Aug 27 12:52:39 UTC 2013


#24766: Title attributes galore. They serve no useful purpose.
---------------------------------+------------------
 Reporter:  karlgroves           |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  3.7
Component:  Accessibility        |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  3.7-early has-patch  |
---------------------------------+------------------

Comment (by nacin):

 Looking through [attachment:24766.diff], I'm finding a lot of questionable
 ones. Can we start with a patch that only removes title attributes that
 exactly match the anchor text? The remaining ones are less
 straightforward. For example (in addition to the media modal strings that
 Helen highlighted):
  * "Are you lost?" is an easter egg of sorts — does not match the title
 text.
  * `$login_header_title` is a little "Powered by WordPress" statement.
  * "Password Lost and Found" could also be considered a bit of an easter
 egg — again, does not match the title text.
  * `$topic_count_text_callback` is a tooltip that displays the actual
 number of tags, when viewing a tag cloud.
  * The ones in the meta widget add information.
  * The RSS widget is a title tag attached to an anchor surrounding just an
 image.
  * Removing the API to specify a title in the toolbar could have
 ramifications. For example, hovering over the Updates item gives you a
 breakdown. We should remove any bogus title tags we are passing into the
 API, but not actually remove the API.

 So, basically, some questions to ask:
  * Does the title attribute add some useful information to the anchor
 text?
  * Are they designed to be used as tooltips?
  * Are we removing an API?

 A yes to any of these questions ''doesn't'' mean "OMG the title attribute
 must stay." I'm all for stripping title tags out of template tags and
 such, and I led the charge in #18984 to remove tooltips from media. Happy
 to consider removing more title tags than not, but it would be good to do
 this with a fine-toothed comb.

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


More information about the wp-trac mailing list