Skip to main content

Module Web_document

type t​

type t =   < body : Web_node.t     ; createElement : ( string -> Web_node.t ) Js_OO.Meth.arity1     ; createElementNS : ( string -> string -> Web_node.t ) Js_OO.Meth.arity2     ; createComment : ( string -> Web_node.t ) Js_OO.Meth.arity1     ; createTextNode : ( string -> Web_node.t ) Js_OO.Meth.arity1     ; getElementById :        ( string -> Web_node.t Js.null_undefined ) Js_OO.Meth.arity1     ; location : Web_location.t >     Js.t

val document​

val document : t

val body​

val body : unit -> Web_node.t

val createElement​

val createElement : string -> Web_node.t

val createElementNS​

val createElementNS : string -> string -> Web_node.t

val createComment​

val createComment : string -> Web_node.t

val createTextNode​

val createTextNode : string -> Web_node.t

val getElementById​

val getElementById : string -> Web_node.t Js.null_undefined

val createElementNsOptional​

val createElementNsOptional : string -> string -> Web_node.t

val location​

val location : unit -> Web_location.t