Closed Bug 295715 Opened 19 years ago Closed 19 years ago

HTML table should use summary attribute for accessible name

Categories

(Core :: Disability Access APIs, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

Details

(Keywords: access)

Attachments

(1 file)

Given the following table:
<table summary="This is my table about bees" ... > .. </table>

We should use the summary attribute for the accessible name of the ROLE_TABLE
object.
Attached patch Simple patchSplinter Review
Attachment #184685 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #184685 - Flags: review?(timeless)
Comment on attachment 184685 [details] [diff] [review]
Simple patch

Note: it's not clear to me whether you should prefer the caption or the
summary.
Attachment #184685 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
(In reply to comment #2)
> (From update of attachment 184685 [details] [diff] [review] [edit])
> Note: it's not clear to me whether you should prefer the caption or the
> summary.

I decided to go with preferring caption, because it seemed to be an arbitrary
decision. It's richer, so once we get accessible relations into the tree I can
point to it with the labelledby relation, which will allow AT's to get at the
formatting of the caption.
Attachment #184685 - Flags: review?(timeless) → review+
Attachment #184685 - Flags: approval1.8b3?
Comment on attachment 184685 [details] [diff] [review]
Simple patch

a=shaver
Attachment #184685 - Flags: approval1.8b3? → approval1.8b3+
Checking in src/base/nsAccessibilityAtomList.h;
/cvsroot/mozilla/accessible/src/base/nsAccessibilityAtomList.h,v  <-- 
nsAccessibilityAtomList.h
new revision: 1.21; previous revision: 1.20
done
Checking in src/html/nsHTMLTableAccessible.cpp;
/cvsroot/mozilla/accessible/src/html/nsHTMLTableAccessible.cpp,v  <-- 
nsHTMLTableAccessible.cpp
new revision: 1.27; previous revision: 1.26
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: