Eliom.Mod_domCross browser dom manipulation functions
val get_body :
Js_of_ocaml.Dom.element Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom.element Js_of_ocaml.Js.tval get_head :
Js_of_ocaml.Dom.element Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom.element Js_of_ocaml.Js.ttype selected_nodes = {links : Js_of_ocaml.Dom_html.anchorElement Js_of_ocaml.Dom.nodeList
Js_of_ocaml.Js.t;Eliom links
*)forms : Js_of_ocaml.Dom_html.formElement Js_of_ocaml.Dom.nodeList
Js_of_ocaml.Js.t;Eliom forms
*)process_nodes : Js_of_ocaml.Dom_html.element Js_of_ocaml.Dom.nodeList
Js_of_ocaml.Js.t;Process unique nodes
*)closure_nodes : Js_of_ocaml.Dom_html.element Js_of_ocaml.Dom.nodeList
Js_of_ocaml.Js.t;Nodes with closures (events)
*)attrib_nodes : Js_of_ocaml.Dom_html.element Js_of_ocaml.Dom.nodeList
Js_of_ocaml.Js.t;Nodes with client attributes
*)}val select_nodes :
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
selected_nodesselect_nodes root finds the nodes below root annotated by Eliom.
val select_request_nodes :
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.element Js_of_ocaml.Dom.nodeList Js_of_ocaml.Js.tselect_request_nodes root finds the nodes below root in the page annotated to be: * request unique nodes
val ancestor :
Js_of_ocaml.Dom.node Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom.node Js_of_ocaml.Js.t ->
boolancestor n1 n2 is true if n1 is an ancestor of n2
val createEvent :
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.tval copy_element :
Js_of_ocaml.Dom.element Js_of_ocaml.Js.t ->
(Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> bool) ->
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.tcopy_element e creates recursively a fresh html from any xml element avoiding browser bugs
val html_document :
Js_of_ocaml.Dom.element Js_of_ocaml.Dom.document Js_of_ocaml.Js.t ->
(Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> bool) ->
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.tAssuming d has a body and head element, html_document d will return the same document as html
val preload_css : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> unit Lwt.tpreload_css e downloads every css included in every link elements that is a descendant of e and replace it and its linked css by inline <style> elements
val iter_nodeList :
'a Js_of_ocaml.Dom.nodeList Js_of_ocaml.Js.t ->
('a Js_of_ocaml.Js.t -> unit) ->
unitval iter_attrList :
Js_of_ocaml.Dom.attr Js_of_ocaml.Dom.namedNodeMap Js_of_ocaml.Js.t ->
(Js_of_ocaml.Dom.attr Js_of_ocaml.Js.t -> unit) ->
unitWindow scrolling.
val position_of_json : Deriving_Json_lexer.lexbuf -> positionval position_json : position Deriving_Json.tval top_position : positionval getDocumentScroll : unit -> positionval setDocumentScroll : position -> unit