RE: aria-level interpretation problem

No need to report it. I’ve opened a pull request to ensure the string is handled as a number and the levels won’t exceed 6.[1]

 

I don’t know that we’ll be able to fix the specifications before they’re published tomorrow, but we’ll definitely get this fixed as an erratum as soon as possible.

 

Thanks for pointing out the bug!

 

[1] https://github.com/w3c/epub-specs/pull/2564

 

Matt

 

---------- Forwarded message ---------
From: James Nurthen <james@nurthen.com <mailto:james@nurthen.com> >
Date: Tue, May 23, 2023 at 3:41 PM
Subject: Re: aria-level interpretation problem
To: <wolfgang.berndorfer@zweiterblick.at <mailto:wolfgang.berndorfer@zweiterblick.at> >
Cc: <w3c-wai-ig@w3.org <mailto:w3c-wai-ig@w3.org> >

 

Wolfgang,

Please file a bug against the epub specification at https://github.com/w3c/epub-specs/issues/new

 

The bug is in the line https://github.com/w3c/epub-specs/blob/181828b283ee5e20546746057076d970e78ce1ea/epub33/common/js/add-caution-hd.js#L16

 

Thanks,

James

 

On Tue, May 23, 2023 at 9:04 AM <wolfgang.berndorfer@zweiterblick.at <mailto:wolfgang.berndorfer@zweiterblick.at> > wrote:

Thanks Madeleine,

 

Sounds plausible. I didn’t look up further instances of the issue.

 

Is W3C reading these list postings? Looks like they are addressed.

 

 

 

From: Madeleine Rothberg <madeleine_rothberg@wgbh.org <mailto:madeleine_rothberg@wgbh.org> > 
Sent: Tuesday, May 23, 2023 5:12 PM
To: wolfgang.berndorfer@zweiterblick.at <mailto:wolfgang.berndorfer@zweiterblick.at> ; w3c-wai-ig@w3.org <mailto:w3c-wai-ig@w3.org> 
Subject: Re: aria-level interpretation problem

 

It looks to me like there is an error in the algorithm generating the document. If you look at the Note callouts, they all have a heading level one higher than the containing section; if you look at the Caution callouts, they all concatenate the containing level with the digit one. I suspect they were intended to add the two digits together rather than concatenate them.

 

-Madeleine

 




Madeleine Rothberg 


Senior Subject Matter Expert 


 <https://www.wgbh.org/foundation/what-we-do/ncam> 

 

 

 

From: "wolfgang.berndorfer@zweiterblick.at <mailto:wolfgang.berndorfer@zweiterblick.at> " <wolfgang.berndorfer@zweiterblick.at <mailto:wolfgang.berndorfer@zweiterblick.at> >
Date: Tuesday, May 23, 2023 at 8:49 AM
To: Post WAI list <w3c-wai-ig@w3.org <mailto:w3c-wai-ig@w3.org> >
Subject: aria-level interpretation problem
Resent-From: Post WAI list <w3c-wai-ig@w3.org <mailto:w3c-wai-ig@w3.org> >
Resent-Date: Tuesday, May 23, 2023 at 8:47 AM

 

HI W3C and community,

 

Is a misinterpretation of aria-level > 6 an issue for WCAG (SC 1.3.1,  4.1.2) or a screen reader bug?

 

For a while I already wondered as a SR-user, why W3C documents flag some notes as H2.

Now I inspected such a component at:

https://www.w3.org/TR/epub-33/#sec-intro-relations

 

In the source was no role=note but an aria-heading with an extraordinary value for aria-level:

 

<div class="caution" id="caution-0">

<div

  role="heading"

  aria-level="31"

  class="caution-title marker">

<span>Caution</span>

</div>

 

For this component , JAWS as well as NVDA announces “heading 2” in Chrome, Edge and Firefox, each for desktop .

 

Possible problems using higher levels are well known: 

“On elements with role  <https://w3c.github.io/aria/#heading> heading, values for  <https://w3c.github.io/aria/#aria-level> aria-level above 6 can create difficulties for users.”

(https://w3c.github.io/aria/#aria-level)

 

So, who has to be addressed for rectification?

 

My preferred mode to get an overview and navigate documents bases on heading hierarchy. And I know, I am not the only one.

 

Thanks,

 

Wolfgang

 

Received on Wednesday, 24 May 2023 20:37:56 UTC