module Dom:DOM bindingsig
..end
This is a partial binding to the DOM Core API.
class type['a]
nodeList =object
..end
NodeList
objects.
type
nodeType =
| |
OTHER |
| |
ELEMENT |
| |
ATTRIBUTE |
| |
TEXT |
| |
CDATA_SECTION |
| |
ENTITY_REFERENCE |
| |
ENTITY |
| |
PROCESSING_INSTRUCTION |
| |
COMMENT |
| |
DOCUMENT |
| |
DOCUMENT_TYPE |
| |
DOCUMENT_FRAGMENT |
| |
NOTATION |
class type node =object
..end
Node
objects.
class type element =object
..end
Element
objects.
class type characterData =object
..end
CharacterData
objects.
class type text = characterData
Text
objects.
class type documentFragment = node
DocumentFragment
objects.
class type['a]
document =object
..end
Document
objects.
val insertBefore : #node Js.t -> #node Js.t -> #node Js.t Js.opt -> unit
insertBefore n c p
behave the same as
n##insertBefore(c, p)
but avoid the need of coercing the
different objects to node t
.val replaceChild : #node Js.t -> #node Js.t -> #node Js.t -> unit
replaceChild n c p
behave the same as
n##replaceChild(c, p)
but avoid the need of coercing the
different objects to node t
.val removeChild : #node Js.t -> #node Js.t -> unit
removeChild n c
behave the same as
n##removeChild(c)
but avoid the need of coercing the
different objects to node t
.val appendChild : #node Js.t -> #node Js.t -> unit
appendChild n c
behave the same as
n##appendChild(c)
but avoid the need of coercing the
different objects to node t
.