XenForo
Administrative
- Thread starter
- Admin
- #1
When initializing a tooltip, the JS does set
Code:
developer.mozilla.org
Read more
ادامه مطلب...
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 developer.mozilla.org](https://developer.mozilla.org/mdn-social-share.cd6c4a5a.png)
aria-label - Accessibility | MDN
The aria-label attribute defines a string value that labels an interactive element.![developer.mozilla.org developer.mozilla.org](https://developer.mozilla.org/favicon-48x48.cbbd161b.png)
Not all elements can be given an accessible name. Neither aria-label nor aria-labelledby should be used...
Click to expand...
Read more
ادامه مطلب...