AccName question about implicit self-referencing nodes

Hi,
I've been researching this to try to make it work as we spoke of last week, and I am running into weird results that don't match what seems to be expected, so I need input here.

First, what name would you expect from the following two examples?

<div id="p">
<button id="test" aria-labelledby="p" >Screen Text</button>
</div>

And

<div id="p">
<a id="test" href=# aria-labelledby="p" >Screen Text</a>
</div>

What do you think they should be? These are implicit self-references for roles that support name from content.

Also, what do you expect the name to be for the following?

<div id="p">
<i id="q">Outside Text</i>
<button id="test" aria-labelledby="p q" >Screen Text</button>
</div>

This last one runs into two separate conflicting conditions. The first is the combination of both an implicit self-reference and an explicit one together, which directly conflicts with the AccName rule that a node can only be processed once and not again afterward. E.G. The I tag is processed twice and it can't be according to the spec.

Please let me know your thoughts. I need to know the answers to this in order to get this right.

Thanks,
Bryan


Bryan Garaventa
Principal Accessibility Architect
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com<mailto:Bryan.Garaventa@LevelAccess.com>
415.624.2709 (o)
www.LevelAccess.com<http://www.levelaccess.com/>

Received on Friday, 15 January 2021 18:24:49 UTC