[RSS Feed/News] Incorrect use of aria-label for tooltips

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
When initializing a tooltip, the JS does set aria-label on the element which often isn't valid:

Code:

Code:
if (
        !$target.attr('aria-label')
        && !$target.attr('aria-labelledby')
        && !$.trim($target[0].textContent).length
)
{
        $target.attr('aria-label', title);
}

developer.mozilla.org

aria-label - Accessibility | MDN

The aria-label attribute defines a string value that labels an interactive element.
developer.mozilla.org
developer.mozilla.org
Not all elements can be given an accessible name. Neither aria-label nor aria-labelledby should be used...
Click to expand...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom