Closed Bug 459782 Opened 16 years ago Closed 16 years ago

check the name calculation rules for nsHTMLLinkAccessible

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b3

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 1 open bug)

Details

(Keywords: access, fixed1.9.1)

Attachments

(1 file)

These rules were introduced in bug 438325: The priorities should be: 1. If a link has screen text, use it. 2. If it has an image, use the logic we have (alt and title of the html:img tag). 3. If the above are not present, and the html:a tag has a title, use that for an accessible name. I wonder why the usual rules can't be applied: 1) get name from label 2) get name from subtree 3) get @title
Attached patch patch (deleted) — Splinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #350113 - Flags: review?(david.bolter)
Attachment #350113 - Flags: review?(marco.zehe)
Attachment #350113 - Flags: review?(marco.zehe) → review+
Comment on attachment 350113 [details] [diff] [review] patch Looks good. I wonder if the comment: // Don't use AppendFlatStringFromSubtree for container widgets like menulist could be moved up closer to the eNameOkFromChildren check in the GetHTMLName implementation?
Attachment #350113 - Flags: review?(david.bolter) → review+
(In reply to comment #2) > (From update of attachment 350113 [details] [diff] [review]) > Looks good. I wonder if the comment: > // Don't use AppendFlatStringFromSubtree for container widgets like menulist > > could be moved up closer to the eNameOkFromChildren check in the GetHTMLName > implementation? eventually we get rid this comment at all becuase we will use role to decide whether we should collect the name from subtree.
Attachment #350113 - Flags: approval1.9.1?
Comment on attachment 350113 [details] [diff] [review] patch a191=beltzner
Attachment #350113 - Flags: approval1.9.1? → approval1.9.1+
http://hg.mozilla.org/mozilla-central/rev/ff61501bd888 and http://hg.mozilla.org/mozilla-central/rev/95803938905c Next time please follow instructions ("make sure you include a commit message and an username in the attachment").
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b3
Keywords: fixed1.9.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: