- From: Aaron Leventhal <aleventhal@google.com>
- Date: Wed, 2 Feb 2022 15:44:46 -0500
- To: James Craig <jcraig@apple.com>
- Cc: "Scott O'Hara" <scott.ohara@microsoft.com>, James Nurthen <nurthen@adobe.com>, Bryan Garaventa <bryan.garaventa@levelaccess.com>, ARIA <public-aria@w3.org>
- Message-ID: <CA+1LECSnM38Bd_-ZYppKf_OorgvQqt2+f27BwLmaU9f8p0-aOA@mail.gmail.com>
I'm not sure without digging in. It's probably easiest to run some comparison tests between browsers. If someone wants to do that, it would be helpful. On Wed, Feb 2, 2022 at 3:26 PM James Craig <jcraig@apple.com> wrote: > > > On Feb 2, 2022, at 12:06 PM, Scott O'Hara <scott.ohara@microsoft.com> > wrote: > > > > Yeh… I would have expected this to run similarly to how James interpreted > this. > > > Same here. > > In reality, would clarifying this / correcting this actually cause > issues? For instance, testing the pattern I did not run into an instance > where the link did not have a name with Webkit, Gecko and Chromium. > > > > *From: *James Nurthen <nurthen@adobe.com> > *Sent: *Wednesday, February 2, 2022 3:04 PM > *To: *Bryan Garaventa <bryan.garaventa@levelaccess.com>; ARIA > <public-aria@w3.org> > *Subject: *[EXTERNAL] Re: Problem with AccName regarding recursively > processed nodes > > > > I have always read the computation of Accessible Name and Accessible > Description as separate invocations of the algorithm. > > I can compute either a description or a name and the same node can be > referenced in either calculation. > > > > Aaron? How do the actual implementations actually do this? > > [image: 51FB8FFB9219453297C0B4BF5767C8EF.png] > > *From:* Bryan Garaventa <bryan.garaventa@levelaccess.com> > *Sent:* Wednesday, February 2, 2022 10:54 AM > *To:* ARIA <public-aria@w3.org> > *Subject:* Problem with AccName regarding recursively processed nodes > > > > Hi, > > Yesterday I received an issue report about the live algorithm code for > AccName that I maintain, and I thought it was a simple bug to fix. In > looking at this further though, I’m not so sure, and need some feedback > from those here to figure out which it is. > > > > The problem, the following code results in no accessible name, but only a > description. > > > > <div id="bob"> > > <a id="test" href="foo" aria-describedby="bob">Some Text</a> > > </div> > > > > If you remove aria-describedby, then it results in an accessible name as > expected. > > > > This seems like a simple fix, but it’s not. > > > > The reason why this is complicated is because of the following text in the > AccName spec. > > > > *Important*: Each *node* > <https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Fwai-aria-1.2%2F%23dfn-node&data=04%7C01%7Cscott.ohara%40microsoft.com%7C4d51a7ee87cb4cb14ce908d9e687335c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637794290633892756%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=rB24vIlM1kq0D3x1VWy%2BAGfEM%2FIziHE5H%2BqYG18oxLg%3D&reserved=0> in > the subtree is consulted only once. If text has been collected from a > descendant, but is referenced by another IDREF in some descendant node, > then that second, or subsequent, reference is not followed. This is done to > avoid infinite loops. > > > > Since the AccName algorithm is linear, the result of it not producing an > accessible name is actually correct. > > > > The reason being, the algorithm has to be followed in the steps they are > documented. > > If either aria-labelledby or aria-describedby is present, the nodes that > they reference have to be followed before the other steps that occur > afterwards in the algorithm. > > As a result, all the nodes that are supposed to be processed if > aria-describedby were not present have already been processed because > aria-describedby references the same nodes beforehand. > > And, as the spec clearly states, you can only process a node once and not > during any other iterations within the same process. > > > > So, this is why this code does not result in an accessible name. > > > > My question is, should this be changed, and if so, you should realize that > this will impact everything everywhere if it is. > > > > Thanks, > > Bryan > > > > > > Bryan Garaventa > > Principal Accessibility Architect > > Level Access, Inc. > > Bryan.Garaventa@LevelAccess.com > > 415.624.2709 <(415)%20624-2709> (o) > > www.LevelAccess.com > <https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.levelaccess.com%2F&data=04%7C01%7Cscott.ohara%40microsoft.com%7C4d51a7ee87cb4cb14ce908d9e687335c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637794290633892756%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zUsrVZlYb6W99cVKgakiEV7aDPlMJ5KYw3Ltggkepmc%3D&reserved=0> > > > > > >
Attachments
- image/png attachment: 51FB8FFB9219453297C0B4BF5767C8EF.png
Received on Wednesday, 2 February 2022 20:45:11 UTC