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 = characterDataText objects.
class type documentFragment = nodeDocumentFragment objects.
class type['a]document =object..end
Document objects.
val insertBefore : #node Js.t -> #node Js.t -> #node Js.t Js.opt -> unitinsertBefore 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 -> unitreplaceChild 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 -> unitremoveChild 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 -> unitappendChild n c behave the same as
n##appendChild(c) but avoid the need of coercing the
different objects to node t.