Skip to content

Commit 6efc776

Browse files
committed
Expose Xml.uris_attrib
1 parent 1d2cf2c commit 6efc776

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

lib/html_f.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ struct
7070

7171
let uri_attrib a s = Xml.uri_attrib a s
7272

73+
let uris_attrib a ss = Xml.uris_attrib a ss
74+
7375
let space_sep_attrib = Xml.space_sep_attrib
7476

7577
let comma_sep_attrib = Xml.comma_sep_attrib
@@ -858,6 +860,8 @@ struct
858860

859861
let uri_attrib a s = Xml.uri_attrib a s
860862

863+
let uris_attrib a ss = Xml.uris_attrib a ss
864+
861865
let space_sep_attrib = Xml.space_sep_attrib
862866

863867
let comma_sep_attrib = Xml.comma_sep_attrib

lib/html_sigs.mli

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,9 @@ module type T = sig
11691169
(** Same, for URI attribute *)
11701170
val uri_attrib : string -> uri wrap -> 'a attrib
11711171

1172+
(** Same, for a space-separated list of URI attributes *)
1173+
val uris_attrib : string -> uri list wrap -> 'a attrib
1174+
11721175
(** Same, for a space-separated list of values *)
11731176
val space_sep_attrib : string -> string list wrap -> 'a attrib
11741177

syntax/reflect/reflect.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ let rec to_attribute_parser lang name ~loc = function
174174
| [[%type: shape]] ->
175175
[%expr variant]
176176

177+
| [[%type: Xml.uri list]]
177178
| [[%type: nmtokens]]
178179
| [[%type: idrefs]]
179180
| [[%type: charsets]]

0 commit comments

Comments
 (0)