Skip to content

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* Add support for the clip-path presentation attribute
44
(#333 by Martin @MBodin Bodin)
55

6+
* Add support for the `name` attribute and `toggle` event on
7+
`<details>` elements
8+
(#341 by @SylvainBoilard)
9+
610
# 4.6.0
711

812
* Update for OCaml 5.0 and drop support for OCaml 4.2.0

lib/html_f.ml

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ struct
151151
let a_onsubmit = Xml.event_handler_attrib "onsubmit"
152152
let a_onsuspend = Xml.event_handler_attrib "onsuspend"
153153
let a_ontimeupdate = Xml.event_handler_attrib "ontimeupdate"
154+
let a_ontoggle = Xml.event_handler_attrib "ontoggle"
154155
let a_onundo = Xml.event_handler_attrib "onundo"
155156
let a_onunload = Xml.event_handler_attrib "onunload"
156157
let a_onvolumechange = Xml.event_handler_attrib "onvolumechange"

lib/html_sigs.mli

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ module type T = sig
215215
val a_onsubmit : Xml.event_handler -> [> | `OnSubmit] attrib
216216
val a_onsuspend : Xml.event_handler -> [> | `OnSuspend] attrib
217217
val a_ontimeupdate : Xml.event_handler -> [> | `OnTimeUpdate] attrib
218+
val a_ontoggle : Xml.event_handler -> [> | `OnToggle] attrib
218219
val a_onundo : Xml.event_handler -> [> | `OnUndo] attrib
219220
val a_onunload : Xml.event_handler -> [> | `OnUnload] attrib
220221
val a_onvolumechange : Xml.event_handler -> [> | `OnVolumeChange] attrib

lib/html_types.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ type details_content = [ | flow5 ]
22332233

22342234
type details_content_fun = [ | flow5 ]
22352235

2236-
type details_attrib = [ | common | `Open ]
2236+
type details_attrib = [ | common | `Open | `Name | `OnToggle ]
22372237

22382238
(* NAME: summary, KIND: star, TYPE: [= common ],[= phrasing ], [=`Summary], ARG: [= phrasing ], ATTRIB: OUT: [=`Summary] *)
22392239
type summary = [ | `Summary ]

0 commit comments

Comments
 (0)