You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hgroup does not appear to have a properly typed signature.
Hgroup example usage from MDN:
<hgroupid="document-title"><h1>HTML: Living Standard</h1><p>Last Updated 12 July 2022</p></hgroup>
If you try to recreate this example in Tyxml you'll get this error:
4 | let test = Html.(hgroup [h1 [Html.txt "Living Standard"]; p [Html.txt "Last updated..."]])
^^^^^^^^^^^^^^^^^
Error: This expression has type [> Html_types.p ] elt
but an expression was expected of type
[< Html_types.hgroup_content_fun > `H1 ] elt
Type [> Html_types.p ] = [> `P ] is not compatible with type
[< Html_types.hgroup_content_fun > `H1 ] =
[< `H1 | `H2 | `H3 | `H4 | `H5 | `H6 > `H1 ]
The second variant type does not allow tag(s) `P
It looks like hgroup_content_fun should be expanded to include ``P in order to comply with the standard.
The text was updated successfully, but these errors were encountered:
hgroup
does not appear to have a properly typed signature.Hgroup example usage from MDN:
If you try to recreate this example in Tyxml you'll get this error:
It looks like
hgroup_content_fun
should be expanded to include ``P in order to comply with the standard.The text was updated successfully, but these errors were encountered: