Post

The link to the Meetup event requires a login to see it (because I was curious the presenter, topic, and possible slide links) but I burned my Meetup account a while ago. Also, FWIW, I consider `aria-label` to be so risky that I would not use it as an interim approach. I’m waiting for the interop.

One potential solution to rehide is to add an event listener for the blur (or focus out etc) event to the anchor and then re-add the attribute in it?

That sounds like an approach to explore. Although I had the browser console.log the document.activeElement to me during find-in-page and cycling through results, and focus did not move to the result until one taps the enter key.

If you used popovers for the labels you could rely on the only one being open at once behaviour along with a toggle event listener to readd hidden until found to the label? Could call showPopover from the beforematch event?

Oh, that's an intriguing idea! Gonna explore that one. I also had thought of .hidden-until-found:has(::search-text:current) to at least solve the problem in the future, but I scrapped the idea the moment I realized that :has() does not allow pseudo elements as selectors (like :is() and :where())

Gemäß www.w3.org/TR/accname/#... müsste das mit `aria-label` funktionieren und ich hab das Konstrukt auch in der Accessibility Tree Ansicht von Firefox inspiziert und da war der `name` gesetzt (bzw. nach meinem Fix wieder gesetzt und vorher nicht). Es erschien mir demnach gut so.

w3.orgAccessible Name and Description Computation 1.1This document describes how user agents determine the names and descriptions of accessible objects from web content languages. This information is in turn exposed through accessibility APIs so that as...

Hach ja, die Untiefen der ARIA Spec, wir lieben es. Könnte tatsächlich sein – das Vorhandensein von aria-label oder ein fokussierbares Element führen ja auch dazu, dass anderes Gedönse wie role=presentation ignoriert wird, vielleicht gilt das ja auch für hidden. Hab nur gerade keinen JAWS zur Hand.