cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 83 forks source link

Remove the title attribute if the content is exactly the same as the title #232

Closed cabrerahector closed 4 years ago

cabrerahector commented 4 years ago

Is your feature request related to a problem? Please describe. The title attribute seen in links are useful when they help name links (eg. if the title is being truncated, it makes sense to use the title attribute so the user can read the full title when hovering the link.)

If both the title and the link share the exact same content then it becomes redundant and thus an usability/accessibility issue, especially for screen-reader users.

Describe the solution you'd like Don't add the title attribute if it's exactly the same as the text used by the link.