commit | cb1ec49cbaf759b914ed33d3e2e407668aafdc4c | [log] [tgz] |
---|---|---|
author | Roger McFarlane <rogerm@chromium.org> | Fri Nov 09 20:29:42 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 09 20:29:42 2018 |
tree | af8411c0a952b2f0631e9aaf06b3cc7458992bfb | |
parent | f66562084955f8c351a4aacb8dec612aec012301 [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: Ib69154fe4a98389f466d8ce81cbb7c3b0cfe3215 Reviewed-on: https://chromium-review.googlesource.com/c/1329898 Reviewed-by: Moe Ahmadi <mahmadi@chromium.org> Commit-Queue: Roger McFarlane <rogerm@chromium.org> Cr-Commit-Position: refs/heads/master@{#606953}
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 .