Mercurial > urweb
diff lib/ur/basis.urs @ 2047:6be31671911b
'aria-*' attributes
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 01 Aug 2014 11:43:44 -0400 |
parents | dfa35ca83d92 |
children | 7c2229aa22fc |
line wrap: on
line diff
--- a/lib/ur/basis.urs Thu Jul 31 09:56:41 2014 -0400 +++ b/lib/ur/basis.urs Fri Aug 01 11:43:44 2014 -0400 @@ -797,9 +797,13 @@ val script : unit -> tag [Code = transaction unit] head [] [] [] -(* Type for HTML5 "data-*" attributes. *) +(* Type for HTML5 "data-*" and "aria-*" attributes. *) +type data_attr_kind +val data_kind : data_attr_kind +val aria_kind : data_attr_kind + type data_attr -val data_attr : string (* Key *) -> string (* Value *) -> data_attr +val data_attr : data_attr_kind -> string (* Key *) -> string (* Value *) -> data_attr (* This function will fail if the key doesn't meet HTML's lexical rules! *) val data_attrs : data_attr -> data_attr -> data_attr