commit | 95c8ebc6e5b760aa85692b012f448c4fa10d53d6 | [log] [tgz] |
---|---|---|
author | Roger McFarlane <rogerm@chromium.org> | Thu Nov 08 18:02:39 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 08 18:02:39 2018 |
tree | 7d22a6d129ff03d900aa60c969f42a8d12afd0ba | |
parent | 97418a9fabd13c13e7e6ae092d23afcad964cf6c [diff] |
[autofill] add iOS helpers to get aria-label and aria-description This CL adds the getAriaLabel() and getAriaDescription() helper functions to the __GCrWeb.fill "namespace". These functions return the ARIA label and description strings associated with an element. The ARIA Label is the text referenced by one or more containing element ids in the labelled elements aria-labelledby attribute, or the value of the element's aria-label attribute, with preference given to the aria-labelledby attribute. For example: <div id='foo-label'>Label for Foo</div> <input name='foo' aria-labelledby='foo-label'> <input name='bar' aria-label='Label for Bar'> The aria-description is similar to aria-labelledby. For example: <div id='foo-description'>Long descriptive text for Foo</div> <input name='foo' aria-describedby='foo-descrition'> Bug: 896719 Change-Id: I300b84298fc20e1b86474f60d08cdd1c9569036b Reviewed-on: https://chromium-review.googlesource.com/c/1325032 Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org> Reviewed-by: Moe Ahmadi <mahmadi@chromium.org> Commit-Queue: Roger McFarlane <rogerm@chromium.org> Cr-Commit-Position: refs/heads/master@{#606534}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .