Closed Bug 1555551 Opened 6 years ago Closed 3 years ago

ROLE_SPINBUTTON accessible (input type="number") nested inside a label element does not have a labelled by relationship.

Categories

(Core :: Disability Access APIs, defect, P3)

defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: yzen, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

Test url:

data,text/html,<label>Spin button label: <input type="number"></label>

The priority flag is not set for this bug.
:Jamie, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jteh)
Flags: needinfo?(jteh)
Priority: -- → P3

I think this might have been fixed? At least, uncommenting the test case that was disabled for this (https://searchfox.org/mozilla-central/rev/3cb31675aeffd10f1f6ae7c40e24b254da7798e5/devtools/server/tests/browser/browser_accessibility_text_label_audit.js#913-914), the test passes.

I guess we can use this bug to land uncommenting the test.

It would be nice to know where and when this was fixed so we can hopefully apply the same principal for Bug 1779954.

It looks like the underlying issue was fixed at some point
as the test passes with the test case enabled.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

This was almost certainly fixed by bug 981248. Previously, <input type="number"> exposed an anonymous input field inside the form control, which caused problems for a11y relations. After bug 981248, there's no anonymous input any more, so a11y relations work as expected.

Bug 1779954 is different because time inputs need to expose multiple inputs inside them. I think we're just going to need to have an exception for that case in the inspector. I'll comment on that bug.

Depends on: 981248
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8fdc469d3d05 [devtools] Enable test case checking spinbutton inside number input doesn't trigger FORM_NO_NAME error. r=Jamie.
Regressions: 1780153
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Blocks: 1269231
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: