Hacker News new | ask | show | jobs
by silverwind 771 days ago
I wonder why there is no corresponding `role="popover"` HTML attribute yet.
1 comments

The docs warn that there is no role associated with the popover attribute because it could be a menu, tooltip, etc., and you should put the correct role on it. Accessibility-wise it does take care of the item with the popovertarget, so you don't have to put aria-controls and aria-expanded.