WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Keyword search with highlighting

for

From: Jared Smith
Date: Nov 26, 2012 1:39PM


On Mon, Nov 26, 2012 at 1:21 PM, Jared Smith wrote:
> In short, there isn't a good way to do this that is currently
> supported in screen readers.

This isn't to suggest that you shouldn't do anything, just that
whatever you do is either going to be an ugly hack (such as off-screen
text to indicate the beginning and end of the highlighted content) or
isn't going to currently work. Personally, I'd use the HTML5 <mark>
element as it's semantically correct - and will be the optimal
solution as soon as screen readers start supporting it.

Jared