Skip to content

Commit

Permalink
Add declarative shadow DOM markups
Browse files Browse the repository at this point in the history
  • Loading branch information
yawaramin committed Jan 13, 2025
1 parent 9c81da2 commit b0798bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pure-html/pure_html.ml
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,15 @@ module HTML = struct
let sandbox fmt = string_attr "sandbox" fmt
let scope fmt = string_attr "scope" fmt
let selected = attr "selected"
let shadowrootclonable = attr "shadowrootclonable"
let shadowrootdelegatesfocus = attr "shadowrootdelegatesfocus"

let shadowrootmode value =
( "shadowrootmode",
match value with
| `open_ -> "open"
| `closed -> "closed" )

let shape fmt = string_attr "shape" fmt
let size fmt = string_attr "size" fmt
let sizes fmt = string_attr "sizes" fmt
Expand Down
10 changes: 10 additions & 0 deletions pure-html/pure_html.mli
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,16 @@ module HTML : sig
val sandbox : _ string_attr
val scope : _ string_attr
val selected : attr

val shadowrootclonable : attr
(** @since 3.10.0 *)

val shadowrootdelegatesfocus : attr
(** @since 3.10.0 *)

val shadowrootmode : [`open_ | `closed] to_attr
(** @since 3.10.0 *)

val shape : _ string_attr

val size : _ string_attr
Expand Down

0 comments on commit b0798bd

Please sign in to comment.