Hello!

 

I want to create child-nodes for an element, let’s say a rectangle.

 

1)

elem.appendChild(rect); // rect is the new, elem an already exising rectangle

 

If I try like this, it doesn’t work (i.e.the child is not rendered!?!)

 

If I just add it to the root element

 

2)

svgDoc.getDocumentElement().appendChild(rect);

 

 

it works (but they are not children, what I want to have since they are logically related in the application).

 

Is there any possibility to do it like in example 1) ??

 

Thank you very much,

 

Christoph

Reply via email to