Issue 117206

Summary: ACC: A hyperlink in writer document doesn't expose correct role and URL to AT-SPI.
Product: Writer Reporter: bhatdv
Component: formattingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: elish, eric.savary, issues
Version: OOo 3.2.1Keywords: accessibility, needhelp
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Accerciser screen-shot: hyperlink exposes ROLE_PARAGRAPH, and no URL to AT-SPI. none

Description bhatdv 2011-03-04 10:31:26 UTC
Created attachment 75996 [details]
Accerciser screen-shot: hyperlink exposes ROLE_PARAGRAPH, and no URL to AT-SPI.

A hyperlink in OOo writer document doesn't expose the correct role and URL to AT-SPI. It exposes ROLE_PARAGRAPH and no URL. If it would expose the correct role (ROLE_LINK or some other appropriate role) and the URL, assistive tools like a screen reader can use the information to improve accessibility of the document.

Steps to reproduce:
1. Start OOo writer. Create a new text document. Add a hyperlink with text 'Open Office Issue Tracker', targeted to 'http://openoffice.org/bugzilla/'. Save the document.

2. Start Accerciser accessibility explorer.

3. Go to the accessible tree view at top left. As shown in attached
screen-shot, select the accessible object corresponding to the hyperlink just
created. The Role column shows 'paragraph'.

4. In the plug-in view at top right, select Interface Viewer. The first line
shows the role as 'paragraph'. The table under Hypertext shows the start and end offsets for the hyperlink text, but no URI.

5. Go to the IPythonConsole at bottom.
   acc.queryText().getText(0,24) returns text 'OpenOffice Issue Tracker'.
   acc.getRole() returns ROLE_PARAGRAPH.
   acc.queryHypertext().getNLinks() returns 1, indicating one link.
   acc.queryHypertext().getLink(0) returns a Hyperlink object.
   acc.queryHypertext().getLink(0).nAnchors returns 1, indicating one anchor.
   acc.queryHypertext().getLink(0).getURI(0) returns '', not the URL.
Comment 1 michael.ruess 2011-03-04 11:27:53 UTC
ES, please have a look.
Comment 2 Oliver-Rainer Wittmann 2012-06-13 12:24:46 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.