Re: Why does the button role have children presentational="true"?

On 31 December 2015 at 15:05, Birkir Gunnarsson <birkir.gunnarsson@deque.com
> wrote:

> <span role="button">New Year's Greetings to
> <span class="IcelandFlag">Iceland</span>
> </span>
>


Hi Birkir, role=presentation does not hide text nodes, it only hides the
role semantics (not content) of the element it is on, and any required
children

So your example would be same as native button:

"New Year's Greetings to Iceland"


this info may be helpful: http://w3c.github.io/aria-in-html/#presentation
--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>

Received on Thursday, 31 December 2015 16:28:10 UTC