Re: elements with presentational content

I just verified all these examples work as expected ("foo, button") in WebKit+VoiceOver, too.

<div role="button"> foo </div><br>
<div role="button" aria-label="foo"> bar </div><br>
<div role="button"> foo <span aria-hidden="true"> bar </span> </div><br>

<button> foo </button><br>
<button aria-label="foo"> bar </button><br>
<button> foo <span aria-hidden="true"> bar </span> </button><br>


On May 29, 2014, at 11:30 AM, Bryan Garaventa <bryan.garaventa@ssbbartgroup.com> wrote:

> I think hidden content should not be included in the naming calculation, such as the following:
>  
> <button>
> Next
> <span aria-hidden="true">
> >> 
> </span>
> </button>
>  
> The label should simply be “Next” and not “Next >>”, as the UIA object now shows on Win7 as the button name in the accessibility tree, which looks like a bug.

Received on Thursday, 29 May 2014 19:48:35 UTC