W3C home > Mailing lists > Public > www-validator@w3.org > May 2020

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

From: Michael[tm] Smith <mike@w3.org>
Date: Sun, 31 May 2020 07:49:46 +0900
To: Joseph Polizzotto MA <jpolizzotto@berkeley.edu>
Cc: www-validator@w3.org
Message-ID: <20200530224946.GI2181@sideshowbarker.net>
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.


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>
> 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

Received on Saturday, 30 May 2020 22:50:02 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 30 May 2020 22:50:03 UTC