File tree 2 files changed +22
-0
lines changed 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,18 @@ module Manip = struct
455
455
elt##.oninput := (bool_cb f)
456
456
end
457
457
458
+ module HTMLElement = struct
459
+ let title elt =
460
+ let elt = get_elt " HTMLElement.title" elt in
461
+ Js. to_string (elt##.title)
462
+ end
463
+
464
+ module SetHTMLElement = struct
465
+ let title elt v =
466
+ let elt = get_elt " HTMLElement.title" elt in
467
+ elt##.title := Js. string v
468
+ end
469
+
458
470
module Attr = struct
459
471
let clientWidth elt =
460
472
let elt = get_elt " Attr.clientWidth" elt in
Original file line number Diff line number Diff line change @@ -118,6 +118,16 @@ module Manip : sig
118
118
val oninput : ('a ,Dom_html .event ) ev
119
119
end
120
120
121
+ (* * Read the properties of DOM elements. *)
122
+ module HTMLElement : sig
123
+ val title : 'a elt -> string
124
+ end
125
+
126
+ (* * Modify the properties of DOM elements. *)
127
+ module SetHTMLElement : sig
128
+ val title : 'a elt -> string -> unit
129
+ end
130
+
121
131
module Attr : sig
122
132
val clientWidth : 'a elt -> int
123
133
val clientHeight : 'a elt -> int
You can’t perform that action at this time.
0 commit comments