Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/22/2017 08:09:27 PM (7 years ago)
Author:
djpaul
Message:

HTML <a> elements should never have title attributes.

Accessible support is too inconsistent across software and platforms.
In a small number of places (mainly legacy templates) where the link text was a meaningless value, the attribute was swapped out for aria-label, which reliably overides the link text readout.

Props rianrietveld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-notifications.php

    r11578 r11606  
    5454        if ( 'string' === $format ) {
    5555            if ( ! empty( $link ) ) {
    56                 $return = '<a href="' . esc_url( $link ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $text ) . '</a>';
     56                $return = '<a href="' . esc_url( $link ) . '">' . esc_html( $text ) . '</a>';
    5757            } else {
    5858                $return = esc_html( $text );
Note: See TracChangeset for help on using the changeset viewer.