Closed Bug 147755 Opened 24 years ago Closed 23 years ago

nsIAccessible's accName returns empty string instead of picking up label for XUL listbox node

Categories

(Core :: Disability Access APIs, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.3alpha

People

(Reporter: dsirnapalli, Assigned: yuanyi21)

Details

Attachments

(2 files)

-- Test case attached. I am testing the below listbox. According to my thinking nsIAccessible accName should pick up the label as the name of the listbox since i gave control="get-item", but instead its showing null for name. <label value="Select a List Item:" control="get-item"/> <box orient="horizontal"> <!-- listbox element is used to create multi-row list boxes --> <listbox id="get-item"> <listitem label="First Item" value="firstitem"/> <listitem label="Second Item" value="seconditem"/> <listitem label="Third Item" value="thirditem"/> <listitem label="Fourth Item" value="fourthitem"/> </listbox> <spacer flex="1"/> </box>
take it for me...
Assignee: aaronl → kyle.yuan
Aaron, is there any specifications for what's the accName for each widget? Should we return selected item's name there? On Windows, HTML list has no name and no value. Where are the defines of control="xxx", such as <label value=".." control="get- item"/> ?
Kyle, for XUL info I always go to www.xulplanet.com. They have an excellent tutorial and reference there. > control > This attribute should be set to the id of an element that the label is > associated with. When the user clicks on the label, the associated element is > given the focus. We should exactly exactly the same thing that IE exposes for listbox controls.
Tested in Windows, neither accName nor accValue are not available for listbox/listview, no matter whether there is an item was selected.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
Tested in Windows, neither accName nor accValue are not available for listbox/listview, no matter whether there is an item was selected. -- It should atleast return null instead of ""(empty string). Usually this is the behaviour is see with other elements.what do you say kyle.
-- It should atleast return null instead of ""(empty string). Usually this is the behaviour is see with other elements.what do you say kyle.
dharma, which element will return null for accName?
XUL Textbox <description> <html:b> Testing XUL Textbox for Accessibility.. </html:b> </description> <box orient="vertical" flex="1"> <!-- TextBox with default text --> <textbox value="Default text..."/> <spacer flex="1"/> </box> HTML CheckBox document.write('<br><br><b> Testing Check Box </b><br><br>'); document.write('<form>'); document.write('Is your age: <br>'); document.write('<input type="checkbox" name="sex" onClick="nodeChecked();" onFocus="nodeFocused();"> Above 30'); document.write('<input type="checkbox" name="sex"> Below 30'); document.write('</form>');
-- Kyle, i dont know whether it should return null or empty string. some elements are returning null and some elements are returning empty string. For example the one's which are returning null is textbox for name. the one's which is returning empty string is this list box itself.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Maybe sometimes we forget to initialize the accName string to an empty string. But I think returning either null or empty string is no matter. Aaron, what's your opinion?
I don't think null vs "" matters either. By the way, nsAutoString always gets initialized to "" to start with.
Dharma, as I and Aaron said, would you like to mark this bug "WONTFIX"?
-- Marking the bug as wontfix.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → WONTFIX
-- Marking the bug as verified.
Status: RESOLVED → VERIFIED
Suddenly I realized the test in comment 5 was based on IE's HTML document instead of the general UI elements. So I'd like to reopen and take it.
Status: VERIFIED → REOPENED
OS: Windows 2000 → All
Resolution: WONTFIX → ---
Target Milestone: --- → mozilla1.3alpha
do the same work for colorpicker. IMO, we should get a name for every visible widget. "Nameless" is helpless.
Comment on attachment 105943 [details] [diff] [review] extract accName by calling GetXULAccName() r=aaronl
Attachment #105943 - Flags: review+
Comment on attachment 105943 [details] [diff] [review] extract accName by calling GetXULAccName() Please use the request tracker instead of mailing me, ok? ;)
Attachment #105943 - Flags: superreview+
checked in!
Status: REOPENED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: