• Dominic Mazzoni's avatar
    Android accessibility: prefer "hint" for text fields labels. · 86d6a59a
    Dominic Mazzoni authored
    Android's AccessibilityNodeInfo does not have a separate field
    for the value of a text field, but it does have a "hint" field.
    
    Suppose a text field has some accessible label - like a
    aria-label or a placeholder. Previously Chrome exposed that
    as the field's text if the field was empty, and the hint if
    the field had user-entered text. This is confusing because
    once the user starts entering text, the label jumps from the
    text to the hint.
    
    Instead, always expose the label as the hint, and let the
    text be empty initially.
    
    BUG=828969
    TBR=aleventhal@chromium.org
    
    Change-Id: I4052a811d645a42b3fecf8e2e1a4b089a7da75b8
    Reviewed-on: https://chromium-review.googlesource.com/994132Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#549257}
    86d6a59a
input-text-aria-placeholder-expected-android.txt 686 Bytes