Re: Nu-HTML warning - Aria-label with horizontal rule?

Hi Michael:

I have found that the use of aria-label within <hr /> is supported by these
configurations:

- NVDA 2020.1 and Firefox 76.0.1
- JAWS 2019.1912 and Chrome 83.04
- JAWS 2019.1912 and IE 11.836
- JAWS 2019.1912 and Edge 83.0.478
- VoiceOver(iOS 13.4.1) in Gmail app

It is not supported, however, with these configurations:

- VoiceOver(macOS Mojave 10.14.6) Safari (13.1.1) or Chrome (83.04)
- VoiceOver(macOS Catalina 10.15.4) Safari (13.1.1) or Chrome (83.04)

I haven't tested with TalkBack yet.

I should have mentioned that the secondary text content in our documents is
marked up with <aside aria-labelledby="page-#">.  This markup is NOT heard
by students when they are using the Read All command with JAWS. They can
navigate to these areas when using the landmarks keystroke, however.

While using the aria-label within <hr /> is probably not a very common use
case, it makes sense for the students for whom we are creating alternative
formats. Since some AT support that usage (our students primarily use JAWS)
is there another reason why the Nu-HTML checker should flag it as a warning?

Joseph

On Sat, May 30, 2020 at 3:49 PM Michael[tm] Smith <mike@w3.org> wrote:

>
> https://www.w3.org/TR/using-aria/#practical-support-aria-label-aria-labelledby-and-aria-describedby
> and
> https://developer.paciellogroup.com/blog/2017/07/short-note-on-aria-label-aria-labelledby-and-aria-describedby/
> are what was used as guidance in determining what the checker should warn
> about.
>
> Note, in the later document, this general comment:
>
> > If you use aria-label, aria-labelledby, or aria-describedby with any
> > other elements (like div, span, p, blockquote, or strong etc.), they
> > generally won’t work across all browser/assistive technology
> > combinations.
>
> Neither of those documents list the hr element as being one that aria-label
> should be used with.
>
> So I think the problem you would run into with using aria-label with hr in
> the way you’ve described is that you’ll end up finding out it’s not being
> announced as expected by current AT software.
>
>   –Mike
>
> Joseph Polizzotto MA <jpolizzotto@berkeley.edu>, 2020-05-29 11:00 -0700:
> > Archived-At: <
> https://www.w3.org/mid/CAGQNLEUhv84_M0ABjs9amLFPCb8rn8pBqoJFe27oi+nY-j1rSQ@mail.gmail.com
> >
> >
> > In our work within disability services, we are trying to develop a method
> > in HTML which will help our students distinguish secondary text content
> > from primary text content.
> >
> > One thought we had was to use the horizontal rule between these two areas
> > and to announce to the screen reader user the beginning of "extra
> content".
> > This way the student can jump over that content if they wish.
> >
> > Would it be possible to use an aria-label inside a horizontal rule
> without
> > receiving a warning message with the Nu-HTML checker?
> >
> > I have attached a file.
> >
> > Thank you,
> >
> > Joseph
>
>
>
> --
> Michael[tm] Smith https://people.w3.org/mike
>


-- 
*Alternate Media Supervisor*
Disabled Students' Program
University of California, Berkeley
https://dsp.berkeley.edu/
<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdsp.berkeley.edu%2F&data=02%7C01%7C%7C4e0abffcb5b34567a22308d5e13137b3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636662523854357148&sdata=yB5%2BUm2W6TBwpc%2BOF4DvN8wPoo1dozUwz8eCepYhTyY%3D&reserved=0>
(510) 642-0329

Received on Sunday, 31 May 2020 03:33:28 UTC