axe-core
Version:
Accessibility engine for automated Web UI testing
15 lines (14 loc) • 405 B
JSON
{
"id": "duplicate-img-label",
"evaluate": "duplicate-img-label-evaluate",
"options": {
"parentSelector": "button, [role=button], a[href], p, li, td, th"
},
"metadata": {
"impact": "minor",
"messages": {
"pass": "Element does not duplicate existing text in <img> alt text",
"fail": "Element contains <img> element with alt text that duplicates existing text"
}
}
}