The default bug view has changed. See this FAQ.

ARIA combobox selected value is not a part of name computation

RESOLVED FIXED in mozilla21

Status

()

Core
Disability Access APIs
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: surkov, Assigned: surkov)

Tracking

(Blocks: 1 bug, {access})

unspecified
mozilla21
access
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

5.37 KB, patch
tbsaunde
: review+
Details | Diff | Splinter Review
(Assignee)

Description

4 years ago
another part of bug 819273 (same description):

it's needed for ARIA test suite: https://dvcs.w3.org/hg/pfwg/raw-file/tip/ARIA/1.0/tests/test-files/accessible-name-input/checkbox-label-embedded-combobox.html

we should pick up an accessible name from accessible value. For example,

<input type="checkbox" id="test" />
   	<label for="test">Flash the screen 
   		<div role="combobox">
   			<div role="textbox"></div>
   			<div role="listbox">
   				<div role="option">1</div>
   				<div role="option" aria-selected="true">2</div>
   				<div role="option">3</div>
   			</div>
   		</div>
   		times.
   	</label>

input's name should be "Flash the screen 2 times".

We miss combobox value because NameFromSubtree for selected item returns null if we are in recursion.
(Assignee)

Comment 1

4 years ago
Created attachment 712337 [details] [diff] [review]
patch
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #712337 - Flags: review?(trev.saunders)
(Assignee)

Comment 2

4 years ago
Created attachment 712416 [details] [diff] [review]
patch2

add compressWhitespace otherwise the algorithm adds the space into the end of computed value
Attachment #712337 - Attachment is obsolete: true
Attachment #712337 - Flags: review?(trev.saunders)
Attachment #712416 - Flags: review?(trev.saunders)
Attachment #712416 - Flags: review?(trev.saunders) → review+
(Assignee)

Comment 3

4 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/eec9adfe786f
Flags: in-testsuite+
https://hg.mozilla.org/mozilla-central/rev/eec9adfe786f
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.