WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Keyword search with highlighting

for

Number of posts in this thread: 5 (In chronological order)

From: Nancy Johnson
Date: Mon, Nov 26 2012 1:11PM
Subject: Keyword search with highlighting
No previous message | Next message →

WE are integrating a keyword search in our new pages...

We are planning on highlighting the words within the text of the
results pages... Is there a best practices on the best way to
highlight so screen readers will pick up?


Thanks

Nancy Johnson

From: Jared Smith
Date: Mon, Nov 26 2012 1:21PM
Subject: Re: Keyword search with highlighting
← Previous message | Next message →

On Mon, Nov 26, 2012 at 1:11 PM, Nancy Johnson < = EMAIL ADDRESS REMOVED = > wrote:

> Is there a best practices on the best way to highlight so screen readers will pick up?

There are some very good responses in the archives for when you asked
this question two months ago -
http://webaim.org/discussion/mail_thread?threadU10

In short, there isn't a good way to do this that is currently
supported in screen readers.

Jared

From: Nancy Johnson
Date: Mon, Nov 26 2012 1:23PM
Subject: Re: Keyword search with highlighting
← Previous message | Next message →

Opps... Thanks for reminding.. under a lot of pressure here.

Nancy

On Mon, Nov 26, 2012 at 3:21 PM, Jared Smith < = EMAIL ADDRESS REMOVED = > wrote:
> On Mon, Nov 26, 2012 at 1:11 PM, Nancy Johnson < = EMAIL ADDRESS REMOVED = > wrote:
>
>> Is there a best practices on the best way to highlight so screen readers will pick up?
>
> There are some very good responses in the archives for when you asked
> this question two months ago -
> http://webaim.org/discussion/mail_thread?threadU10
>
> In short, there isn't a good way to do this that is currently
> supported in screen readers.
>
> Jared
> > >

From: Jared Smith
Date: Mon, Nov 26 2012 1:39PM
Subject: Re: Keyword search with highlighting
← Previous message | Next message →

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

From: Nancy Johnson
Date: Tue, Nov 27 2012 5:31AM
Subject: Re: Keyword search with highlighting
← Previous message | No next message

I like that idea. Thanks. I will probably also use the <strong> as
it will work for this particular instance...

Nancy

On Mon, Nov 26, 2012 at 3:39 PM, Jared Smith < = EMAIL ADDRESS REMOVED = > wrote:
> 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
> > >