[Webkit-unassigned] [Bug 12229] New: setAttributeNS(null, "fill", "red") not working for polygons
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 12 12:35:19 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12229
Summary: setAttributeNS(null,"fill","red") not working for
polygons
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh PowerPC
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptGlue
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: russgum at mac.com
function changeColor(evt, id) {
var SVGDoc = evt.getTarget().getOwnerDocument();
var state = SVGDoc.getElementById(id);
var style = state.getStyle();
evt.target.setAttributeNS(null,"fill","red");
}
works for rectangles and circles but not for polygons
<rect id="myBlueRect" width="100" height="50" x="1500" y="1000" fill="blue"
onclick="changeColor(evt, 'myBlueRect')"/> works
<polygon id="F02" class="S40F02" style="fill: white" stroke="blue"
stroke-width="2" onmouseover="changeColor(evt, 'S40F02')"
points="
687.0,958.0
786.0,958.0
813.0,1030.0
714.0,1030.0
" /> does not work
--
Configure bugmail: http://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