Bug 38196 - Dynamically changing coords of an area does nothing
Summary: Dynamically changing coords of an area does nothing
Status: RESOLVED DUPLICATE of bug 20850
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 412
Hardware: PC Windows XP
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 06:40 PDT by Michel
Modified: 2010-04-27 14:29 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel 2010-04-27 06:40:52 PDT
This code does nothing :
========================================
var ar=document.getElementById('area2');
ar.coords="325,325,560,455";
========================================

Note that an "addEventListener" has been added to the area (mouseover and mouseout)
Also note that the code works in IE and FF but not in Chrome or Safari.
Finally, please note I'm not using the latest WebKit release but looked up in bugzilla first.

===================
HTML part :
<BODY>
<img id="img" src="test.jpg" border="2px" style="border-color:black" USEMAP="#Mapxx">

<map name="Mapxx">
  <area shape="RECT" id="area2" coords="325,125,560,255">
</map>
....
</BODY>
========================================
Sorry if I did not selected the right component.

Great work !
Comment 1 Michel 2010-04-27 14:27:01 PDT
Seems to be almost the same than #20850 : 
https://bugs.webkit.org/show_bug.cgi?id=20850
Except that work-around will not work because of EventListener which will be lost.
Comment 2 Alexey Proskuryakov 2010-04-27 14:29:56 PDT
Indeed! Thanks for finding the duplicate.

*** This bug has been marked as a duplicate of bug 20850 ***