[Webkit-unassigned] [Bug 34328] New: Manipulating SVG element attributes in Javascript does not work as expected
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 29 06:26:33 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34328
Summary: Manipulating SVG element attributes in Javascript does
not work as expected
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://www.go2mk.com/temporary/Webkit_SVG_Bug/webkit-b
ug-demo.xhtml
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mohannad.hussain at agfa.com
Our application is almost pure Javascript, where we do tons of SVG work.
However, we find that manipulating attributes of SVG in Javascript either makes
no difference, or renders the image wrong (wrong size, wrong clipping...etc).
In the URL example,
http://www.go2mk.com/temporary/Webkit_SVG_Bug/webkit-bug-demo.xhtml, I am
removing the viewBox attribute and nothing happens on the screen. The work
around I discovered that works is to find the div containing the SVG and do
div.innerHTML = div.innerHTML!! Removing the node completely, replacing it with
another, then placing it back seems to work too.
We have seen this problem with many attributes other than viewBox, like the x,y
coordinates as an example. Functions like forceRedraw() seem to make no
difference.
We can confirm this problem is happening on Windows and Mac. We have both
Chrome and Safari running webkit 532.5 and 531.21.8 respectively.
This could be related to issue #16491, but I am not 100% sure.
Thanks for your help!
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list