Bug 152343

Summary: AX: Fieldset without legend with VoiceOver
Product: WebKit Reporter: Craig Francis <craig+webkit>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: OS X 10.11   
Attachments:
Description Flags
Example HTML
none
Screenshot of VoiceOver output. none

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>