Bug 185498

Summary: AX: accessibleNameForNode should simplify whitespace when using innerText
Product: WebKit Reporter: Joanmarie Diggs <jdiggs>
Component: AccessibilityAssignee: Joanmarie Diggs <jdiggs>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, ews-watchlist, jcraig, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Joanmarie Diggs
Reported 2018-05-09 16:48:12 PDT
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.
Attachments
Patch (4.75 KB, patch)
2018-05-09 16:50 PDT, Joanmarie Diggs
no flags
Joanmarie Diggs
Comment 1 2018-05-09 16:50:05 PDT
Radar WebKit Bug Importer
Comment 2 2018-05-09 17:36:33 PDT
WebKit Commit Bot
Comment 3 2018-05-09 18:50:00 PDT
Comment on attachment 340051 [details] Patch Clearing flags on attachment: 340051 Committed r231627: <https://trac.webkit.org/changeset/231627>
WebKit Commit Bot
Comment 4 2018-05-09 18:50:01 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.