commit | 13fd76a041fb3443821e8d57eb396248af04208c | [log] [tgz] |
---|---|---|
author | Roger McFarlane <rogerm@chromium.org> | Fri Nov 09 19:38:33 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 09 19:38:33 2018 |
tree | a975f0319109f68040e0446f9b6601b9f1af32e2 | |
parent | 4943b1d166f85579dfe1ff8a189c009d5aa02c79 [diff] |
[autofill] Add helpers to get the ARIA labels and descriptions This CL adds the GetAriaLabel() and GetAriaDescription() helper functions to the autofill::form_util 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: Ida72c467d2e876b4d7a60ad56de56c7bac5489ec Reviewed-on: https://chromium-review.googlesource.com/c/1325535 Commit-Queue: Roger McFarlane <rogerm@chromium.org> Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org> Cr-Commit-Position: refs/heads/master@{#606936}
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 .