Bug 152343 - AX: Fieldset without legend with VoiceOver
Summary: AX: Fieldset without legend with VoiceOver
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: Macintosh OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-12-16 10:37 PST by Craig Francis
Modified: 2016-09-08 14:00 PDT (History)
1 user (show)

See Also:


Attachments
Example HTML (369 bytes, text/html)
2015-12-16 10:37 PST, Craig Francis
no flags Details
Screenshot of VoiceOver output. (59.27 KB, image/jpeg)
2015-12-16 10:38 PST, Craig Francis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Francis 2015-12-16 10:37:13 PST
Created attachment 267467 [details]
Example HTML

When a form contains a <fieldset> that does not include a <legend>, then the label for inputs are incorrect.

So with the attached file, VoiceOver will describe the field as:

  "Field A, edit text, Intro (not a legend). Field A, Field A"

You will notice the repetition of "Field A" three times.

If the <p> is changed into a <legend> this becomes:

  "Field A, edit text, Intro (a legend)"

This second example is correct, where it just includes the field <label>, type, and the associated <legend>.

I suspect the problem is when a <legend> does not exist, WebKit just takes all of the fieldsets text instead, resulting in the duplication.

This was also tested on WebKit nightly r194142.
Comment 1 Craig Francis 2015-12-16 10:38:25 PST
Created attachment 267468 [details]
Screenshot of VoiceOver output.
Comment 2 Alexey Proskuryakov 2016-09-08 14:00:15 PDT
<rdar://problem/28213662>