Closed
Bug 694343
Opened 14 years ago
Closed 14 years ago
offsetLeft and offsetTop for AREA tags incorrect
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 123341
People
(Reporter: rich, Unassigned)
Details
Attachments
(3 files, 2 obsolete files)
User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8; Zune 4.7; MS-RTC EA 2)
Steps to reproduce:
Attached a mouse hover event handler to <AREA> tags in an image <MAP>. Examined value of AREA's offsets.
Actual results:
Noticed that offsetLeft and offsetTop and jQuery's offset() values are incorrect in Firefox, but are reported correctly in IE9+.
I am unable to find the bounding area around an AREA tag.
Expected results:
Offsets should have reported the offset of the area tag, but they're not.
This needs a testcase without jQuery involved. Otherwise it might be a bug in jQuery.
| Reporter | ||
Comment 2•14 years ago
|
||
Attachment #566859 -
Attachment is obsolete: true
| Reporter | ||
Comment 3•14 years ago
|
||
Have replaced the original test case with a pure Javascript test case. The problem remains.
Attachment #566988 -
Attachment is obsolete: true
I'v no idea what
area.offsetLeft|offsetTop|offsetWidth|offsetHeight
should return per HTML5 spec.
WebKit and Opera return 0, IE returns the metrics as the reporter expects, Gecko returns the image's values.
Moving to Core. It's a dup of bug 123341 but maybe HTML5 has something to say meanwhile.
Component: General → DOM: Core & HTML
OS: Windows 7 → All
Product: Firefox → Core
QA Contact: general → general
Hardware: x86_64 → All
Version: 7 Branch → Trunk
Comment 8•14 years ago
|
||
If it does, then bug 123341 is the place to say it....
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•