#26551 closed defect (bug) (fixed)
Remove title attributes: link-template.php
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | title-attribute |
Focuses: | accessibility | Cc: |
Description (last modified by )
Related: #24766
// link-template.php edit_term_link() edit_post_link() edit_comment_link() edit_bookmark_link() get_adjacent_post_rel_link() the_shortlink()
Change History (11)
#5
@
11 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
#7
@
10 years ago
- Keywords close added; needs-patch removed
Having chatted with Rian at WCLDN, we agree with Joe - the title attribute on the shortlink can be left in. It's not a hinderance to screen readers, and the default anchor text of "This is a shortlink" is more descriptively helpful than replacing that content with the post title.
The question, from a non-accessibility view, might be whether the tooltip is sufficiently helpful for visual readers or not? If not, then for consistency with other links and to therefore match user expectations, the attribute should be removed.
This ticket was mentioned in Slack in #accessibility by garyj. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
These have mostly been resolved. get_adjacent_post_rel_link() is a valid use of the title attribute (in a <link> element), most others have been removed.
The title attribute use in the_shortlink() is somewhat valid, since it does provide more information about the link. And, since the_shortlink() is used in themes, adding screen reader text is perhaps problematic, since we can't guarantee that styles are applied for that.
My feeling is that this is less than ideal, but I don't really have an alternate suggestion. Themes can implement this in a more accessible manner, according to their own methods by replacing the link text, since this is readily filterable. Probably should just be left as is, but I'm open to second opinions with another idea.