webhintio/hint

[Feature] Axe errors: show which element the error is about

kuba-orlik opened this issue ยท 1 comments

๐Ÿš€ Feature request

Description

When axe showcases issues with accessibility, it doesn't provide any hint on what item does it have in mind:

So I get an error like "Form elements must have labels: Element has no title attribute Element has no placeholder attribute" and it's not quite actionable. Which input should I look at?

image

It would be nice if it provided an HTML snippet of the affected part of the document