Closed
Bug 398105
Opened 17 years ago
Closed 17 years ago
Removing xlink:href attribute from <svg:a> does not update elements influenced by :link styles
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: longsonr)
References
Details
(Keywords: testcase)
Attachments
(4 files, 1 obsolete file)
388 bytes,
image/svg+xml
|
Details | |
243 bytes,
image/svg+xml
|
Details | |
403 bytes,
image/svg+xml
|
Details | |
1.39 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
tor
:
approval1.9+
|
Details | Diff | Splinter Review |
Testcase based on layout/reftests/svg/pseudo-classes-02.svg (from bug 268135).
Reporter | ||
Comment 1•17 years ago
|
||
Reporter | ||
Comment 2•17 years ago
|
||
Assignee | ||
Comment 3•17 years ago
|
||
This is invalid, you can't use removeAttribute to remove a namespaced attribute. If you use removeAttributeNS it works for me. onload="setTimeout(function() { document.getElementById('r').removeAttributeNS('http://www.w3.org/1999/xlink','href'); }, 0);"
Reporter | ||
Comment 4•17 years ago
|
||
The attribute does get removed in the testcase. Look in DOM Inspector, then delete the root element and undo.
Assignee | ||
Comment 5•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Attachment #283020 -
Attachment is obsolete: true
Assignee | ||
Comment 6•17 years ago
|
||
Assignee | ||
Comment 7•17 years ago
|
||
Looks like removeAttributeNS doesn't work either despite my previous assertion to the contrary.
Assignee | ||
Comment 8•17 years ago
|
||
bug 113310 was the html version of this.
Assignee | ||
Comment 9•17 years ago
|
||
I tried converting the patch from bug 113310 to nsSVGAElement but this did not fix it so I don't really know why this doesn't work.
Assignee | ||
Comment 10•17 years ago
|
||
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Attachment #287540 -
Flags: superreview?(bzbarsky)
Attachment #287540 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 11•17 years ago
|
||
Of course I could pass the attribute namespace ID around with the attribute and perhaps that would address the what about XLink comment if made the check be based on href and an attribute xlink namespace. That would require changes to a number of files to pass that information through though.
Comment 12•17 years ago
|
||
Comment on attachment 287540 [details] [diff] [review] patch I guess this works, yeah. Watch for perf regressions when you land!
Attachment #287540 -
Flags: superreview?(bzbarsky)
Attachment #287540 -
Flags: superreview+
Attachment #287540 -
Flags: review?(bzbarsky)
Attachment #287540 -
Flags: review+
Assignee | ||
Updated•17 years ago
|
Attachment #287540 -
Flags: approval1.9?
Comment 13•17 years ago
|
||
Comment on attachment 287540 [details] [diff] [review] patch As bz said, please land this during a time when the performance can be isolated.
Attachment #287540 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 14•17 years ago
|
||
Seemed quiet. Checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 15•16 years ago
|
||
Checked in reftest: http://lxr.mozilla.org/seamonkey/source/layout/reftests/svg/dynamic-link-style-01.svg
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•