New issue
Advanced search Search tips

Issue 889562 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 26
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Title attribute should be preferred over localized "submit" string for accessible name of input type="image"

Project Member Reported by joanmari...@gmail.com, Sep 26

Issue description

Steps to reproduce:
1. Open the attached test case.
2. Use an accessibility inspector to view the accessible name of the input element.

Expected results: The accessible name would be "email".

Actual results: The accessible name is "submit".

Notes:

1. Gecko and WebKit each expose "email" as the accessible name.

2. The HTML-AAM currently* states that exposing "submit" is a valid option. However, it's a "user agent may" (as opposed to a "should" or "must"). And it's immediately followed by "Otherwise use title attribute." Given the current language in the HTML-AAM, and the strong desire for interoperable implementations, I believe we should do what Gecko and WebKit currently do.

3. I find the language in the HTML-AAM problematic and something which should be fixed. I've filed that issue against the spec and suggested that title be preferred over "submit". https://github.com/w3c/html-aam/issues/150
 
image-input-with-title.html
96 bytes View Download
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 26

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ff85daecad0a798dd22dad94d87756a841a98643

commit ff85daecad0a798dd22dad94d87756a841a98643
Author: Joanmarie Diggs <jdiggs@igalia.com>
Date: Wed Sep 26 21:34:24 2018

Prefer title over "submit" for accessible name of image input

Preferring the title attribute over "submit" means that end users will
potentially get a more precise name for the widget. In addition, because
both Gecko and WebKit prefer the title attribute, making this change will
increase interoperability. Lastly, the HTML-AAM does state user agents can
use the title attribute; using "submit" is presented as an option. Note
that a bug has been filed against the HTML-AAM because such options seem
to decrease rather than increase the likelihood of interoperability.

Bug:  889562 
Change-Id: I73b4f6ed79488d7e2eb41e9ae80aabafe8590a88
Reviewed-on: https://chromium-review.googlesource.com/1246724
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594481}
[modify] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
[add] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/content/test/data/accessibility/html/input-image-with-title-expected-blink.txt
[add] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/content/test/data/accessibility/html/input-image-with-title.html
[modify] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/third_party/WebKit/LayoutTests/accessibility/name-calc-img.html
[modify] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/third_party/WebKit/LayoutTests/accessibility/name-calc-native-markup-input-buttons.html
[modify] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-buttons-expected.txt
[modify] https://crrev.com/ff85daecad0a798dd22dad94d87756a841a98643/third_party/blink/renderer/modules/accessibility/ax_node_object.cc

Status: Fixed (was: Started)

Sign in to add a comment