[Bug 27294] DOM needs a way to get element's computed ARIA role and computed label string

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27294

--- Comment #26 from Philip Jägenstedt <philipj@opera.com> ---
(In reply to Alice Boxhall from comment #18)
> (In reply to Philip Jägenstedt from comment #17)
> > (In reply to Dominic Mazzoni from comment #16)
> > > The main use-case I have in mind is feature/capability detection. As new
> > > ARIA roles are added, and more generally as the ARIA spec improves, web
> > > authors need a way to determine whether a particular user agent supports
> > > those features, and provide a polyfill if not.
> > > 
> > > In the case of ARIA roles, a computedRole() interface would allow a web app
> > > to determine whether a particular role is recognized, and if not provide an
> > > appropriate substitute. While there's existing support for listing multiple
> > > roles, the interaction between ARIA roles in the DOM hierarchy is pretty
> > > important and web authors might want more control over them.
> > 
> > Would a static boolean isRoleSupported(DOMString role) suffice for this
> > purpose? That seems like the simplest possible API for detecting support for
> > a role, and seems trivial to implement.
> 
> This

Not sure if this was copypasta or if your reply was truncated :)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 19 December 2014 14:21:23 UTC