<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Fieldset without legend with VoiceOver"
   href="https://bugs.webkit.org/show_bug.cgi?id=152343">152343</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AX: Fieldset without legend with VoiceOver
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X 10.11
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Accessibility
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>craig+webkit&#64;craigfrancis.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=267467" name="attach_267467" title="Example HTML">attachment 267467</a> <a href="attachment.cgi?id=267467&amp;action=edit" title="Example HTML">[details]</a></span>
Example HTML

When a form contains a &lt;fieldset&gt; that does not include a &lt;legend&gt;, then the label for inputs are incorrect.

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

  &quot;Field A, edit text, Intro (not a legend). Field A, Field A&quot;

You will notice the repetition of &quot;Field A&quot; three times.

If the &lt;p&gt; is changed into a &lt;legend&gt; this becomes:

  &quot;Field A, edit text, Intro (a legend)&quot;

This second example is correct, where it just includes the field &lt;label&gt;, type, and the associated &lt;legend&gt;.

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

This was also tested on WebKit nightly r194142.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>