# Class type Dom_html.selection

    class type selection = object .. end

Information on current selection

    method anchorNode : Dom.node Js.t Js.readonly_prop

    method anchorOffset : int Js.readonly_prop

    method focusNode : Dom.node Js.t Js.readonly_prop

    method focusOffset : int Js.readonly_prop

    method isCollapsed : bool Js.t Js.readonly_prop

    method rangeCount : int Js.readonly_prop

    method getRangeAt : int -> range Js.t Js.meth

    method collapse : bool Js.t -> unit Js.meth

    method extend : Dom.node Js.t -> int -> unit Js.meth

    method modify : Js.js_string Js.t -> Js.js_string Js.t -> Js.js_string Js.t -> unit Js.meth

    method collapseToStart : unit Js.meth

    method collapseToEnd : unit Js.meth

    method selectAllChildren : Dom.node Js.t -> unit Js.meth

    method addRange : range Js.t -> unit Js.meth

    method removeRange : range Js.t -> unit Js.meth

    method removeAllRanges : unit Js.meth

    method deleteFromDocument : unit Js.meth

    method containsNode : Dom.node Js.t -> bool Js.t -> bool Js.t Js.meth

    method toString : Js.js_string Js.t Js.meth