@@ -61,6 +61,7 @@ module DocumentPosition : sig
6161 val add : mask -> mask -> mask
6262 val (+ ) : mask -> mask -> mask
6363end
64+
6465(* * Specification of [Node] objects. *)
6566class type node = object
6667 method nodeName : js_string t readonly_prop
@@ -173,16 +174,19 @@ val insertBefore : #node t -> #node t -> #node t opt -> unit
173174 The expression [insertBefore n c p] behave the same as
174175 [p##insertBefore(n, c)] but avoid the need of coercing the
175176 different objects to [node t]. *)
177+
176178val replaceChild : #node t -> #node t -> #node t -> unit
177179 (* * The expression [replaceChild p n c] behave the same as
178180 [p##replaceChild(n, c)] (replace [c] by [n] in [p])
179181 but avoid the need of coercing the
180182 different objects to [node t]. *)
183+
181184val removeChild : #node t -> #node t -> unit
182185 (* * The expression [removeChild n c] behave the same as
183186 [n##removeChild(c)] (remove [c] from [n])
184187 but avoid the need of coercing the
185188 different objects to [node t]. *)
189+
186190val appendChild : #node t -> #node t -> unit
187191 (* * The expression [appendChild n c] behave the same as
188192 [n##appendChild(c)] (appends [c] to [n])
@@ -226,13 +230,16 @@ end
226230
227231val no_handler : ('a , 'b ) event_listener
228232 (* * Void event handler (Javascript [null] value). *)
233+
229234val handler : (('e #event t as 'b ) -> bool t ) -> ('a , 'b ) event_listener
230235 (* * Create an event handler that invokes the provided function.
231236 If the handler returns false, the default action is prevented. *)
237+
232238val full_handler : ('a -> ('e #event t as 'b ) -> bool t ) -> ('a , 'b ) event_listener
233239 (* * Create an event handler that invokes the provided function.
234240 The event target (implicit parameter [this]) is also passed as
235241 argument to the function. *)
242+
236243val invoke_handler : ('a , 'b ) event_listener -> 'a -> 'b -> bool t
237244 (* * Invoke an existing handler. Useful to chain event handlers. *)
238245
0 commit comments