-
-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathWeb.res
More file actions
30 lines (28 loc) · 602 Bytes
/
Web.res
File metadata and controls
30 lines (28 loc) · 602 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
type target = [#_blank | #_self | #_parent | #_top]
// @todo find a zero cost way to support array of rel
// does passing an array of string to dom will automatically join with , when implicitely using toString on the array?
//
// list from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
// a / area column
type rel = [
| #"external"
| #alternate
| #author
| #bookmark
| #help
| #license
| #next
| #nofollow
| #noopener
| #noreferrer
| #opener
| #prev
| #search
| #tag
| #ugc
]
type hrefAttrs = {
download?: string,
rel?: rel,
target?: target,
}