Closed
Bug 439077
Opened 16 years ago
Closed 16 years ago
Anchor tags with no attributes should not expose linked accessible state
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9.1a1
People
(Reporter: Jamie, Assigned: surkov)
References
Details
(Keywords: access)
Attachments
(2 files, 1 obsolete file)
458 bytes,
text/html
|
Details | |
14.64 KB,
patch
|
MarcoZ
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008061105 Minefield/3.0pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008061105 Minefield/3.0pre Gecko incorrectly exposes the linked state to accessibility APIs for anchor ("a") tags which have no attributes. Such anchors are most definitely not linked. Note that despite the linked state, these links (correctly) do not have the focusable state and cannot be focused. Reproducible: Always Steps to Reproduce: 1. Open the attached test case. 2. Examine the states of each link object. Actual Results: Both "link object with href" and "link object with no attributes" expose the linked state. Expected Results: "link object with no attributes" should not expose the linked state. Interestingly enough, even "link object with class" does not expose the linked state. I originally suspected that the lack of href, name, id and onClick attributes would cause the incorrect exposure of the linked state, but it seems the error only occurs when there are *no* attributes.
Reporter | ||
Comment 1•16 years ago
|
||
This sample presents anchor tags with different attributes. Observe the exposure of the linked state for each as noted in the actual and expected results.
Comment 2•16 years ago
|
||
We need to be careful about elements with role="link" attributes. Even though the action when following such a link will most likely be an onclick handler, its role of "link" should in any case make sure we expose the LINKED state for it.
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 3•16 years ago
|
||
hg patch contains extra lines for every unchanged file, I don't know how I can get rid them
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #325497 -
Flags: review?(marco.zehe)
Assignee | ||
Comment 4•16 years ago
|
||
without those lines in the patch
Attachment #325497 -
Attachment is obsolete: true
Attachment #325501 -
Flags: review?(marco.zehe)
Attachment #325497 -
Flags: review?(marco.zehe)
Comment 5•16 years ago
|
||
Comment on attachment 325501 [details] [diff] [review] patch2 nit: >+ // This is a either named anchor (not a link with also a name attribute) or must read: + // This is either a named anchor (a link with also a name attribute) or With that fixed, r=me.
Attachment #325501 -
Flags: review?(marco.zehe) → review+
Assignee | ||
Comment 6•16 years ago
|
||
checked in on mozilla-central
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 7•16 years ago
|
||
This fixes the bug in question very nicely. However, the linked state is now exposed when a link has an onClick but no href. Imo, it should only be exposed for links with an href. Assistive technologies should use the default action to check for "clickable" elements; i.e. elements with an onClick handler. I'm happy to open a separate bug for this if required, but I wasn't sure about the feasibility of fixing this.
Comment 8•16 years ago
|
||
(In reply to comment #7) > This fixes the bug in question very nicely. However, the linked state is now > exposed when a link has an onClick but no href. What about ARIA links? They'll have a role of "link", they, by nature, won't have an href since an ARIA element is probably not an html:a, but I believe we should definitely keep the "linked" state for these since the role says it's a link. Please open a separate bug on this one.
Comment 9•16 years ago
|
||
Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008062603 Minefield/3.1a1pre
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Target Milestone: --- → mozilla1.9.1a1
Assignee | ||
Updated•16 years ago
|
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•