pa11y / pa11y-webservice

Pa11y Webservice provides scheduled accessibility reports for multiple URLs
https://pa11y.org
GNU General Public License v3.0
153 stars 63 forks source link

Allow posting html for auditing directly #146

Open doug-wade opened 11 months ago

doug-wade commented 11 months ago

I would like to propose an alternative POST body that would be supported in addition to the current POST body.

{
    "name": "my-name",
    "html": "<div>foo</div>",
    "standard": "WCAG2AA"
}

My use case is that I would like to catch a11y issues before they go out, so I would like to write a plugin for the text editor we use on the site (https://www.tiny.cloud/) that posts the contents of the editor on blur, and displays any a11y issues detected as validation errors on the form. This will allow us to alert users of a11y issues when they are authoring their page, and not after it has been released in production.

doug-wade commented 11 months ago

If we are interested in such a contribution, I will have time to work on it during our company hackathon next week.