Closed Bug 1624826 Opened 4 months ago Closed 4 months ago

Accessible name for fieldset has trailing whitespace

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: MarcoZ, Assigned: MarcoZ)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. With the testcase: data:text/html,<fieldset id="fieldset"><legend>Fields</legend><input aria-label="hello"></fieldset>
  2. Inspect the name for the grouping in Accessibility Inspector.
    • Expected: Name is "fields".
    • Actual: Name is "fields " (has a trailing whitespace).

Weird, but doesn't feel like something which has much user impact, so p3. Please adjust if you disagree.

Priority: -- → P3

This was an oversight in the HTMLGroupBoxAccessible implementation of NativeName, others trim their whitespaces by default.

Assignee: nobody → mzehe
Status: NEW → ASSIGNED
Pushed by mzehe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b795e883afa
Remove trailing whitespace from accessible name of fieldset element if provided by legend, r=eeejay
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
QA Whiteboard: [qa-76b-p2]
You need to log in before you can comment on or make changes to this bug.