[Webkit-unassigned] [Bug 20850] New: Can not change the attribute value of coords in area element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 15 00:49:15 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20850

           Summary: Can not change the attribute value of coords in area
                    element
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arjones at live.nl


The document source is changed, but the values are not updated in the DOM.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29
Safari/525.13</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript">
function changeCoords() {
var obj = document.getElementById('hotspot');
obj.setAttribute('coords', '195,130,100');
/*
// to fix the problem
var newObj = obj.cloneNode(true);
var parent = document.getElementById('myImage');
parent.removeChild(obj);
parent.appendChild(newObj);
*/
}
</script>

<style type="text/css">

</style>

</head>
<body>
<div>
    <img src="../../Images/horses.jpg" width="390" height="260" alt="horses"
usemap="#myImage">
        <button type="button" onclick="changeCoords();">changeCoords</button>
</div>

<map id="myImage" name="myImage">
    <area id="hotspot" shape="circle" coords="195,130,25" href="#" alt="">
</map>

</body>
</html>


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list