New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 815326 link

Starred by 1 user

Issue metadata

Status: Available
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug
STS
Team-Accessibility



Sign in to add a comment

Automation API returns incorrect selection

Project Member Reported by katie@chromium.org, Feb 23 2018

Issue description

Page: http://accessibility.psu.edu/tableshtml/complextablehtml/

Select the "color names in multiple languages..." header and table just below. The automation selection is the heading below that.

Selection:
> window.getSelection().toString()
"
Color Names in Multiple Languages (Romance vs Celtic)
Family	Romance Lang	Celtic
Color	Spanish	French	Irish	Welsh
Green	verde	vert	glas	gwyrdd
Blue	azul	bleu	gorm	glas
Black	negro	noir	dubh	du
"
> window.getSelection().getRangeAt(0)
Range {startContainer: div.example, startOffset: 1, endContainer: h2, endOffset: 0, collapsed: false, …}

Returned by automation:
The "About the Tags" heading as both the focus and anchor.
> anchorObject.name
"About the Tags"
> focusObject.name
"About the Tags"
> anchorObject.role
"heading"
> focusObject.role
"staticText"
> focusObject.parent.role
"heading"
> focusObject.parent === anchorObject
true


I can try to boil this down into a simple example later.
 
Owner: nek...@chromium.org
Status: VAILABLE (was: Untriaged)
Labels: OS-Chrome OS-Linux OS-Mac OS-Windows
Status: Available (was: VAILABLE)
The selection internals are being re-worked by me.

Sign in to add a comment