WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
14312
Removing an attribute has no effect on SVG
https://bugs.webkit.org/show_bug.cgi?id=14312
Summary
Removing an attribute has no effect on SVG
Bruce Rindahl
Reported
2007-06-22 12:11:21 PDT
The DOM methods removeAttribute and removeAttributeNS are apparently not implemented. I can add an attribute using .setAttributeNS(null,"transform","translate(0,100)") . It cannot be removed using .removeAttributeNS(null,"transform"). Thsishould be allowed per the specs.
Attachments
SVG file showing behavior
(1.13 KB, image/svg+xml)
2007-06-22 12:15 PDT
,
Bruce Rindahl
no flags
Details
First attempt
(8.80 KB, patch)
2007-07-25 12:56 PDT
,
Rob Buis
zimmermann
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Bruce Rindahl
Comment 1
2007-06-22 12:15:20 PDT
Created
attachment 15185
[details]
SVG file showing behavior Clicking on the green rectangle shifts the blue rectangle downward. Clicking on the red rectangle should shift the blue rectangle back up but it doesn't.
Alexey Proskuryakov
Comment 2
2007-07-06 05:22:36 PDT
Actually, the attribute is successfully removed, you can check that by entering the string below in the address bar: javascript:alert(document.getElementById("blue").getAttributeNS(null,"transform")) However, this has no effect on rendering for some reason (even if I resize the window for re-layout).
Bruce Rindahl
Comment 3
2007-07-06 10:46:38 PDT
(In reply to
comment #2
) I can confirm that. Something else must be needed to refresh. Setting the transform to "scale(1)" does make it work. Enter: javascript:document.getElementById("blue").setAttributeNS(null,"transform","scale(1)")
Rob Buis
Comment 4
2007-07-25 12:56:40 PDT
Created
attachment 15684
[details]
First attempt This should do it. However it is done on trunk, I am sure I can find some victim to apply it to feature branch, or it takes a while longer until I am back on that branch, but I am heading back there for sure. Cheers, Rob.
Nikolas Zimmermann
Comment 5
2007-07-25 13:37:57 PDT
Comment on
attachment 15684
[details]
First attempt Please also land in feature-branch, my tree is blocked by patches, too.
Rob Buis
Comment 6
2007-07-26 00:43:13 PDT
Landed in
r24640
on feature branch.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug