Bug 31119

Summary: @transform values changes when accessing the SVGTransformList
Product: WebKit Reporter: Jeff Schiller <jeffschiller>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: rwlbuis
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 41761    
Attachments:
Description Flags
Test case exhibiting the problem none

Jeff Schiller
Reported 2009-11-04 06:42:07 PST
Created attachment 42483 [details] Test case exhibiting the problem The attached test case shows that by referencing an element's SVGTransformList, it changes the DOM value of the @transform attribute to "matrix(...)". The value of an attribute shouldn't be changed just be accessing a DOM property. Gecko/Opera browsers do not do this. var t1 = someElem.getAttribute('transform'); someElem.transform; // just accessing this DOM property var t2 = someElem.getAttribute('transform'); t1 != t2
Attachments
Test case exhibiting the problem (904 bytes, image/svg+xml)
2009-11-04 06:42 PST, Jeff Schiller
no flags
Rob Buis
Comment 1 2010-05-24 10:20:32 PDT
Hello Jeff, (In reply to comment #0) > Created an attachment (id=42483) [details] > Test case exhibiting the problem > > The attached test case shows that by referencing an element's SVGTransformList, it changes the DOM value of the @transform attribute to "matrix(...)". The value of an attribute shouldn't be changed just be accessing a DOM property. Gecko/Opera browsers do not do this. > > > var t1 = someElem.getAttribute('transform'); > someElem.transform; // just accessing this DOM property > var t2 = someElem.getAttribute('transform'); > > t1 != t2 I cant reproduce this anymore in trunk, can you confirm? If so we can close this bug report. Cheers, Rob.
Rob Buis
Comment 2 2010-07-07 05:40:43 PDT
krit confirmed this is fixed as well, so closing.
Note You need to log in before you can comment on or make changes to this bug.