Code Monkey home page Code Monkey logo

Comments (2)

OlgaTCK avatar OlgaTCK commented on June 15, 2024 1

Sorry, I don't get it right. You say, it is OK, though, but if this manually step of checking is done, there is only description of the img a11y check section, and nothing about errors, warnings or tips for improvement. Is this also the expected behavioral of the Koa11y app?

The HTML report generated only this:

https://www.business-punk.com
Image Accessibility
10% of images on the page had descriptive ALT text. (3/31)
100% of ALTs were under 100 characters. (31/31)
94% of images were under 100KB in size. (29/31)
100% of images loaded with a total image payload of 1205.7KB (31/31)

from koa11y.

TheJaredWilcurt avatar TheJaredWilcurt commented on June 15, 2024

Working as expected. Your page is lazy-loading images in a non-accessible way.

Screenshot of the page and the DOM

If you look in the DOM, the JS waits until the content is scrolled into view, then it sets the background image of the parent element to a predetermined (stored in data-interchange``). The image src` stays as a dummy "placeholder", transparent image, while the parent div's background is visually displayed.

The script you run provided by Koa11y only grab's the img's src and alt attribute values. It does not look at any other elements. Nor should it, as the goal is to check the accessibility of the images.

Even if no images load, you can already tell that placeholder is not a descriptive text of the image.

from koa11y.

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.