Skip to content

Consider `aria-label` as "labelled by" too

The label of an element could be available through both aria-labelledby and aria-label, where the latter means the element is labelled by itself.

Accordingly, we should check that attribute too to be sure that if aria-labelledby points at a non existent element, but aria-label exists, we can still target the right element.