Quantumbar: Move role="combobox" from the input field to a parent node
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 file)
From https://phabricator.services.mozilla.com/D23155#inline-135750:
I think the role="combobox" needs to go from the input to a parent like in the W3C examples. I played with this in a current Nightly, and I get very inconsistent results when typing in text. The input should announce itself to the screen reader as a text input like in the old awesome bar.
I was wondering if role="combobox" should move to a parent, but wasn't sure because the div doesn't seem to serve any other function in the w3c example and it's unclear what it's good for. I'm now guessing it's needed because otherwise role="combobox" overrides the input's default implied role.
Comment 1•6 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #0)
I was wondering if role="combobox" should move to a parent, but wasn't sure because the div doesn't seem to serve any other function in the w3c example and it's unclear what it's good for. I'm now guessing it's needed because otherwise role="combobox" overrides the input's default implied role.
Right, the ARIA role always takes precedence, even on native HTML elements that are widgets. So we have to be careful. Like I said, since I wasn't sure myself, we might need to iterate until we get this right.
There is currently also still another problem that is possibly for a different bug, and that is that the list opens and gains focus the moment I type something in. In the old URL bar, I have to explicitly press DownArrow for the first element to have its activedescendant set, otherwise I could not use the left and right arrow keys to read what I typed. But that might be for a different bug. This is one of the things Jamie Teh finally did right last year when he also introduced the URLbar tests.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment on attachment 9050935 [details]
Bug 1535263 - Move role=combobox from the input field to a parent node.
Moving role and aria-owns seems to break cycling through the results -- NVDA announces "Unknown" instead of the result labels. Any clue why that's the case?
Comment 4•6 years ago
|
||
Comment on attachment 9050935 [details]
Bug 1535263 - Move role=combobox from the input field to a parent node.
See my comment in Phabricator.
Comment 6•6 years ago
|
||
bugherder |
Description
•