[Webkit-unassigned] [Bug 47365] New: getTextAtOffset returns incorrect results if a link includes text and an image
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 7 11:07:38 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=47365
Summary: getTextAtOffset returns incorrect results if a link
includes text and an image
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Accessibility
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: joanmarie.diggs at gmail.com
Created an attachment (id=70120)
--> (https://bugs.webkit.org/attachment.cgi?id=70120)
test case
Steps to reproduce:
1. View the attached test case in Epiphany.
2. Using Accerciser, obtain the text of each line using pyatspi.TEXT_BOUNDARY_LINE_START.
Expected results: The full line of text for each line would be returned.
Actual results: The full line of text is not returned when there is an image inside of the link.
~~~~~~
Copy and paste from Accerciser's iPython console, where tn is the AtkText interface for the nth AtkObject of ATK_ROLE_PARAGRAPH:
In [1]: t1 = acc.queryText()
In [2]: t2 = acc.queryText()
In [3]: t3 = acc.queryText()
In [4]: t4 = acc.queryText()
In [5]: t1.getTextAtOffset(0, TEXT_BOUNDARY_LINE_START)
Out[5]: ('One two three', 0, 13)
In [6]: t2.getTextAtOffset(0, TEXT_BOUNDARY_LINE_START)
Out[6]: ('One two thr', 0, 11)
In [7]: t3.getTextAtOffset(0, TEXT_BOUNDARY_LINE_START)
Out[7]: ('One two thr', 0, 11)
In [8]: t4.getTextAtOffset(0, TEXT_BOUNDARY_LINE_START)
Out[8]: ('One two ', 0, 8)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list