Given this test case: <input id="test" type="text" aria-labelledby="hidden" /> <div style="display:none;"> <div id="hidden"> <table> <tr> <td>cell 1</td> <td><div>cell 2</div></td> <td>cell 3</td> </tr> </table> </div> </div> The accessible name calculated for the element with id of "test" should be "cell 1 cell 2 cell 3" without new line characters or additional spaces. We're adding both because accessibleNameForNode falls back on innerText when there is no AccessibilityObject, and there is no AccessibilityObject because the element from which the name is to be calculated is not rendered.
Created attachment 340051 [details] Patch
<rdar://problem/40113814>
Comment on attachment 340051 [details] Patch Clearing flags on attachment: 340051 Committed r231627: <https://trac.webkit.org/changeset/231627>
All reviewed patches have been landed. Closing bug.