module Manip:sig..end
DOM-like manipulation functions.
In this module, all the functions apply only to SVG element with .
val appendChild : ?before:'a Eliom_content.Svg.elt ->
'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt -> unitappendChild 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.
val appendChildren : ?before:'a Eliom_content.Svg.elt ->
'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt list -> unitappendChildren 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.
val insertFirstChild : 'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt -> unitinsertFirstChild p c inserts c as first child of p
val nth : 'a Eliom_content.Svg.elt -> int -> 'b Eliom_content.Svg.elt optionnth e n returns the nth child of e (first is 0)
val childLength : 'a Eliom_content.Svg.elt -> intchildLength e returns the number of children of e
val removeChild : 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt -> unitremoveChild e1 e2 removes for e2 from the list of
children of e1.
val replaceChild : 'a Eliom_content.Svg.elt ->
'b Eliom_content.Svg.elt -> 'c Eliom_content.Svg.elt -> unitreplace e1 e2 e3 replaces e3 by e2 in the
list of children of e1.
val removeChildren : 'a Eliom_content.Svg.elt -> unitremoveChildren e1 removes all children of e1.
val removeSelf : 'a Eliom_content.Svg.elt -> unitremoveSelf e removes element e from the DOM.
val replaceChildren : 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt list -> unitreplaceChildren e1 elts replaces all the children of
e1 by elt.
val parentNode : 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt optionparentNode elt returns the parent of elt, if any.
val nextSibling : 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt optionnextSibling elt returns the next element that has the same parent,
if elt is not the last.
val previousSibling : 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt optionpreviousSibling elt returns the previous element
that has the same parent,
if elt is not the first.
val insertBefore : before:'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt -> unitinsertBefore ~before elt insert elt before before.
val insertAfter : after:'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt -> unitinsertAfter ~after elt insert elt after after.
val replaceSelf : 'a Eliom_content.Svg.elt -> 'b Eliom_content.Svg.elt -> unitreplaceSelf elt1 elt2 replaces elt1 by elt2.
module Named:sig..end
Dom manipulation by element identifier.
module Class:sig..end