Closed Bug 301626 Opened 19 years ago Closed 19 years ago

AccessibleObject returned for some A tags is for wrong textnode

Categories

(Firefox :: Disability Access, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tim.mchyde, Assigned: aaronlev)

References

()

Details

(Keywords: access)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+

Using GetAccessibleObjectFromPoint I normally get the right object that has the
actual text under that point.  But at times i get an adjacent node which does
not have the text under the point.


Reproducible: Always

Steps to Reproduce:
Load up this html and try using my test program from
bugzilla.mozilla.org/show_bug.cgi?id=297697 over the two anchor tags

<ul><br>
<li>Go to Pharaoh and say to him, “Thus says the Lord, ‘Let My people go that
they may serve ME!’” <a
href="http://biblegateway.com/cgi-bin/bible?language=english&amp;version=NASB&amp;passage=Exodus+8%3A1"
title="Bible Gateway">Exodus 8:1</a><br>

</li><li>Rise early in the morning and present yourself before Pharaoh, as he
comes out to the water, and say to him, “Thus says the Lord, ‘Let My people go,
that they may serve ME!’” <a
href="http://biblegateway.com/cgi-bin/bible?language=english&amp;version=NASB&amp;passage=Exodus+8%3A20"
title="Bible Gateway">Exodus 8:20</a><br>
1.
2.
3.

Actual Results:  
the first anchor's text is produced ("Exodus 8:1") but the second anchor's does
not come up ("Exodus 8:20") but instead you get "Rise up early in the
morning..." as the text.

Expected Results:  
Given Exodus 8:20
What's happening is that the anchor is inside a larger text object, and the
point is inside both. We're returning the first object we see.

I agree it's a bug.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Summary: AccessibleObject returned for some A tags is for wrong textnode → AccessibleObject returned for some A tags is for wrong textnode
It's because there were in list items :)
Assignee: nobody → aaronleventhal
Status: ASSIGNED → NEW
Keywords: access
Attachment #190095 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190095 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #190095 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190095 - Flags: superreview+
Attachment #190095 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #190095 - Flags: review+
Attachment #190095 - Flags: approval1.8b4?
Attachment #190095 - Flags: approval1.8b4? → approval1.8b4+
Checking in nsHTMLTextAccessible.cpp;
/cvsroot/mozilla/accessible/src/html/nsHTMLTextAccessible.cpp,v  <-- 
nsHTMLTextAccessible.cpp
new revision: 1.44; previous revision: 1.43
done
Checking in nsHTMLTextAccessible.h;
/cvsroot/mozilla/accessible/src/html/nsHTMLTextAccessible.h,v  <-- 
nsHTMLTextAccessible.h
new revision: 1.33; previous revision: 1.32
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: