<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Implement ARIA 1.1 &#64;aria-current on iOS"
   href="https://bugs.webkit.org/show_bug.cgi?id=149297#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Implement ARIA 1.1 &#64;aria-current on iOS"
   href="https://bugs.webkit.org/show_bug.cgi?id=149297">bug 149297</a>
              from <span class="vcard"><a class="email" href="mailto:n_wang&#64;apple.com" title="Nan Wang &lt;n_wang&#64;apple.com&gt;"> <span class="fn">Nan Wang</span></a>
</span></b>
        <pre>Issue:
When testing with the example(<a href="https://bug-146012-attachments.webkit.org/attachment.cgi?id=261418">https://bug-146012-attachments.webkit.org/attachment.cgi?id=261418</a>) on iOS, the link is not exposed as accessibility element. 

In the function determineIsAccessibilityElement in WebAccessibilityObjectWrapperIOS, link is not exposed because the function containsUnnaturallySegmentedChildren returns NO.

I'm wondering, in the comment it says &quot;Links can sometimes be elements (when they only contain static text or don't contain anything).&quot;, which is the case for the example, shouldn't we expose the link as accessibility element?

While diving deeper, in containsUnnaturallySegmentedChildren function, it returns NO when the element only has one child. However, I'm thinking it should return NO only if the only child is NOT static text or image. Make sense?

Also with the current logic, the accessibility/ios-simulator/link-with-only-image.html test's expectation has a line &quot;FAIL obj.isIgnored should be false. Was true.&quot;. We shouldn't include a failure in the expected result, right? 

In conclusion, by removing the &quot;if (childrenSize == 1) return NO;&quot; part in containsUnnaturallySegmentedChildren, the test will have the PASS result and link will be exposed as expected. Just want to make sure my logic is reasonable.</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>