Open
Bug 723376
Opened 13 years ago
Updated 2 years ago
Removing and adding SVG causes the style attribute to be serialized and reparsed
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
NEW
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: perf, testcase)
Attachments
(1 file)
734 bytes,
image/svg+xml
|
Details |
Removing and adding SVG causes the style attribute to be serialized and reparsed. This seems inefficient.
Combined with serialization bugs such as bug 475216, this can lead to strange things happening!
Comment 1•13 years ago
|
||
Yes, SVG does this very very purposefully. See nsSVGElement::BindToTree.
We could try to make this better by, say, storing the base URI in the attr value or something, and not doing the reparse if the base URI didn't change....
We wouldn't serialize the CSS decl if we actually have a string it came from, but in this case we don't, since it was built up programmatically.
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86_64 → All
The testcase here works for me, but bug 720077 looks to be caused by the reparse.
Blocks: 720077
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•