Giter Site home page Giter Site logo

Comments (2)

luketw avatar luketw commented on May 18, 2024

Hi,

Your code snippet is not showing, can you please confirm?

I see

<a href></a>

as in the source of your comment - is this what you're talking about?

If it's something like this... I'm actually not sure. What's happening is that HTMLCS will pass by elements that that have no content but are used as a "source anchor" (by including an ID or name attribute), as this is generally useful.

If it had a filled-in href attribute, it probably should be throwing an error because a link should normally contain link text that describes the link's purpose.

But if it has none of the above... I'm not sure what kind of limbo that leaves it in. Personally I'd remove them for code cleanliness purposes rather than anything else - or if it's meant to be used for something else (and actually contain content at some point), hiding it using CSS or something.

But I'd be leaning towards that it probably should be passed as "not inaccessible" because it actually doesn't -do- anything for anyone, and thus there are no accessibility issues with it - most of the things to do with accessibility as per WCAG20 have to do with making sure accessibility is equal, not necessarily "optimal".

from html_codesniffer.

luketw avatar luketw commented on May 18, 2024

Closing (but not locking) due to no feedback in months.

from html_codesniffer.

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.