Bug 11660

Summary: SVG: creation of <use/> elements through scripting/DOM doesn't work
Product: WebKit Reporter: Andreas Neumann <a.neumann>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: file:///Users/an/Desktop/createUseElementPerScript.svg
Attachments:
Description Flags
this is the crashlog from http://www.carto.net/papers/svg/gui/checkbox_and_radiobutton/index.svg none

Description Andreas Neumann 2006-11-21 02:46:35 PST
The dynamic creation of new <use/> elements with scripting/DOM doesn't work.

This bug is partially related to bug http://bugs.webkit.org/show_bug.cgi?id=10410 where the sliders also need dynamically created <use/> elements.

Thanks for having a look at this.
Comment 1 Eric Seidel (no email) 2006-12-25 23:41:04 PST
Yet another example of this:
http://svg-whiz.com/svg/ShowBoundingBox.svg
Comment 2 Nikolas Zimmermann 2007-01-20 11:05:00 PST
Landed in r18979.
Comment 3 Andreas Neumann 2007-01-23 00:52:44 PST
I can confirm that it works now. This is good news!

However, in the current version (latest nightly) I also have crashes, maybe as a regression to this bugfix?

If you open as an example http://www.carto.net/papers/svg/gui/checkbox_and_radiobutton/index.svg I get crashes. I'll attach the crashlog here. The crash happens if I toggle one checkbox and then toggle it again. What the script mainly does, is toggling the "display" attribute of the <use/> elements to "none" or "inline".
Comment 4 Andreas Neumann 2007-01-23 00:54:29 PST
Created attachment 12620 [details]
this is the crashlog from http://www.carto.net/papers/svg/gui/checkbox_and_radiobutton/index.svg
Comment 5 Nikolas Zimmermann 2007-01-24 04:26:58 PST
(In reply to comment #3)
> I can confirm that it works now. This is good news!
> 
> However, in the current version (latest nightly) I also have crashes, maybe as
> a regression to this bugfix?

Hi Andreas,

good catch - I'll look into this later!
Niko