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 15:10:40 +0900
To: Joseph Polizzotto MA <jpolizzotto@berkeley.edu>
Cc: www-validator@w3.org
Message-ID: <20200531061040.GJ2181@sideshowbarker.net>
Joseph Polizzotto MA <jpolizzotto@berkeley.edu>, 2020-05-30 20:23 -0700:
> Archived-At: <https://www.w3.org/mid/CAGQNLEUYogWG606h25OOHSb+for0BpEdm9jEdoy3F6bvuBo_fQ@mail.gmail>
> ...
> 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?

The sole reason the checker is flagging an hr with aria-label as a warning
is that the guides I cited in my previous message don’t recommend using
aria-label with hr. If those guides were to change that recommendation,
then I would change the checker behavior.

But note that the message is a warning, not an error. So it’s not saying
that using aria-label with hr is non-conforming to the specs and that you
must not use it. Instead it’s effectively saying that you should not use it
unless you’re aware of the user effects.

If you’d like to persistently ignore that warning (or any other message from
the checker), https://github.com/validator/validator/wiki/Message-filtering
describes the options available for doing that.


Michael[tm] Smith https://people.w3.org/mike

Received on Sunday, 31 May 2020 06:10:56 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 31 May 2020 06:10:57 UTC