Correct aria-owns usage between search box and one-off buttons




2 years ago
2 years ago


(Reporter: MarcoZ, Unassigned)




Firefox Tracking Flags

(firefox50 affected)




2 years ago
Spun off bug 1279665 comment #33, which reads:

> (In reply to alexander :surkov from comment #32)
> > (In reply to :Gijs Kruitbosch from comment #28)
> > 
> > > document.getAnonymousElementByAttribute(document.getElementById("searchbar"),
> > > "anonid", "searchbar-textbox").getAttribute("aria-owns")
> > > 
> > > which produces "PopupSearchAutoComplete".
> > 
> > the problem here is "searchbar-textbox" is in anonnymous subtree so it
> > cannot refer to explicit content by ID, in other words aria-owns was used
> > incorrectly in XBL case in this particular case. That means if you remove
> > aria-owns from "searchbar-textbox" then it should fix the problem, because
> > it will make all things looking exactly same as they were before bug 1261408.
> Did you try this suggestion yourself? Removing this attribute on Nightly
> using the browser console makes NVDA read out all the one-off buttons as
> "unknown", instead of not reading anything. Adding the aria-owns markup to
> the searchbar itself, which isn't anon content, doesn't help either.
> You've also not really explained why this used to work before bug 1261408 and > why that bug would break it, so I don't know what else to suggest. 

This needs to be worked out to produce correct markup, too, apparently.
You need to log in before you can comment on or make changes to this bug.