Code Monkey home page Code Monkey logo

Comments (5)

middlesister avatar middlesister commented on July 22, 2024

I did a little research and it seems the practice of the title attributes just followed along from a long time ago and has no clear benefit.
https://core.trac.wordpress.org/ticket/24203

I think we can safely remove the title attribute completely.

from thematic.

scottnix avatar scottnix commented on July 22, 2024

I will double check Thematic, I think there is one more section that uses "Permalink to" which may fall into the same category of legacy stuff done for no purpose. :P

from thematic.

middlesister avatar middlesister commented on July 22, 2024

I found two more places. There are permalink title attributes on featured thumbnails and on custom post type archive links.
Are these also candidates for removal?
Although the title in this case differ from the content of the link?

from thematic.

 avatar commented on July 22, 2024

looking at 2.0 as a last chance for making major changes in output i say Scotts got a point with abandoning the old practice

from thematic.

middlesister avatar middlesister commented on July 22, 2024

I've removed a bunch of title attributes throughout. The use - or rather reliance on it - is generally discouraged in html5 since it excludes keyboard-only users as well as touch-only users. It's basically useless for tablets and mobile.
References
http://mrwweb.com/the-title-attribute-and-why-its-almost-useless/
http://www.paciellogroup.com/blog/2013/01/using-the-html-title-attribute-updated/

This is a good start in an accessibility effort. I'd like the next release to get Thematic as far as possible in this regard and earn the accessibility-ready tag in the theme repo.

This also removes some strings for translation. It's not a huge deal. I will regenerate a pot file before release but having unused strings in the translation files is much less serious than having strings untranslated.

from thematic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.