Svg.ManipSourceDOM-like manipulation functions.
In this module, all the functions apply only to SVG element with <<a_manual chapter="clientserver-html" fragment="unique"|Dom semantics>>
.
appendChild e1 e2 inserts the element e2 as last child of e1. If the optional parameter ~before:e3 is present and if e3 is a child of e1, then e2 is inserted before e3 in the list of e1 children.
appendChildren e1 elts inserts elts as last children of e1. If the optional parameter ~before:e3 is present and if e3 is a child of e1, then elts are inserted before e3 in the list of e1 children.
insertFirstChild p c inserts c as first child of p
removeChild e1 e2 removes for e2 from the list of children of e1.
replace e1 e2 e3 replaces e3 by e2 in the list of children of e1.
replaceChildren e1 elts replaces all the children of e1 by elt.
nextSibling elt returns the next element that has the same parent, if elt is not the last.
previousSibling elt returns the previous element that has the same parent, if elt is not the first.
insertBefore ~before elt insert elt before before.
insertAfter ~after elt insert elt after after.