Closed Bug 1311283 Opened 8 years ago Closed 8 years ago

elementFromPoint returns <img> instead of <area>

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1227469

People

(Reporter: tom_xyz, Unassigned)

Details

(Whiteboard: [parity-chrome][parity-edge])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20161018030211

Steps to reproduce:

1. Go to this demo page: http://thdoan.github.io/magnify/demo-map.html
2. Execute this from the console: document.elementFromPoint(916, 263).click()


Actual results:

Nothing happens.


Expected results:

The page is supposed to redirect to Google since position 916,263 falls inside the Google rectangle of the image map. If you repeat the steps above in Chrome or Safari, then it works as expected (i.e., page redirects to Google).
Attached file testcase
STR
1. Open testcase

Actual Results:
img (return img element)

Expected Results:
area2 (return area element)
Status: UNCONFIRMED → NEW
Component: Untriaged → DOM
Ever confirmed: true
Product: Firefox → Core
Whiteboard: [parity-chrome][parity-edge]
Version: 52 Branch → Trunk
Summary: Cannot fire proper 'click' using elementFromPoint → elementFromPoint returns <img> instead of <area>
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: