1use super::reflect::{EnumSpec, Entry, K};
4
5pub(super) static TABLE: &[Entry] = &[
6 Entry { name: "aLink", tags: &["body"], attr: "alink", kind: K::StrNe, get: true },
7 Entry { name: "abbr", tags: &["td"], attr: "abbr", kind: K::Str, get: true },
8 Entry { name: "action", tags: &["form"], attr: "action", kind: K::Url, get: true },
9 Entry { name: "align", tags: &["caption", "col", "colgroup", "div", "embed", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "iframe", "img", "input", "legend", "object", "p", "table", "tbody", "td", "tfoot", "th", "thead", "tr"], attr: "align", kind: K::Str, get: true },
10 Entry { name: "archive", tags: &["object"], attr: "archive", kind: K::Str, get: true },
11 Entry { name: "as", tags: &["link"], attr: "as", kind: K::Enum(&EnumSpec { kw: &["fetch", "audio", "document", "embed", "font", "image", "manifest", "object", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt"], def: Some(""), inv: Some(""), canon: &[], nullable: false }), get: true },
12 Entry { name: "autocomplete", tags: &["form"], attr: "autocomplete", kind: K::Enum(&EnumSpec { kw: &["on", "off"], def: Some("on"), inv: Some("on"), canon: &[], nullable: false }), get: true },
13 Entry { name: "axis", tags: &["td", "th"], attr: "axis", kind: K::Str, get: true },
14 Entry { name: "background", tags: &["body"], attr: "background", kind: K::Str, get: true },
15 Entry { name: "bgColor", tags: &["body", "table", "td", "th", "tr"], attr: "bgcolor", kind: K::StrNe, get: true },
16 Entry { name: "bgColor", tags: &["marquee"], attr: "bgcolor", kind: K::Str, get: true },
17 Entry { name: "border", tags: &["img", "object"], attr: "border", kind: K::StrNe, get: true },
18 Entry { name: "border", tags: &["table"], attr: "border", kind: K::Str, get: true },
19 Entry { name: "cellPadding", tags: &["table"], attr: "cellpadding", kind: K::StrNe, get: true },
20 Entry { name: "cellSpacing", tags: &["table"], attr: "cellspacing", kind: K::StrNe, get: true },
21 Entry { name: "ch", tags: &["col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"], attr: "char", kind: K::Str, get: true },
22 Entry { name: "chOff", tags: &["col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"], attr: "charoff", kind: K::Str, get: true },
23 Entry { name: "cite", tags: &["blockquote", "del", "ins", "q"], attr: "cite", kind: K::Url, get: true },
24 Entry { name: "clear", tags: &["br"], attr: "clear", kind: K::Str, get: true },
25 Entry { name: "code", tags: &["object"], attr: "code", kind: K::Str, get: true },
26 Entry { name: "codeBase", tags: &["object"], attr: "codebase", kind: K::Url, get: true },
27 Entry { name: "codeType", tags: &["object"], attr: "codetype", kind: K::Str, get: true },
28 Entry { name: "colSpan", tags: &["td", "th"], attr: "colspan", kind: K::Clamped(1, 1000, 1), get: true },
29 Entry { name: "color", tags: &["font"], attr: "color", kind: K::StrNe, get: true },
30 Entry { name: "color", tags: &["hr"], attr: "color", kind: K::Str, get: true },
31 Entry { name: "cols", tags: &["frameset"], attr: "cols", kind: K::Str, get: true },
32 Entry { name: "cols", tags: &["textarea"], attr: "cols", kind: K::LimULongFb(20), get: true },
33 Entry { name: "compact", tags: &["dir", "dl", "menu", "ol", "ul"], attr: "compact", kind: K::Bool, get: true },
34 Entry { name: "coords", tags: &["a"], attr: "coords", kind: K::Str, get: true },
35 Entry { name: "crossOrigin", tags: &["audio", "img", "link", "script", "video"], attr: "crossorigin", kind: K::Enum(&EnumSpec { kw: &["anonymous", "use-credentials"], def: None, inv: Some("anonymous"), canon: &[("", "anonymous")], nullable: true }), get: true },
36 Entry { name: "data", tags: &["object"], attr: "data", kind: K::Url, get: true },
37 Entry { name: "declare", tags: &["object"], attr: "declare", kind: K::Bool, get: true },
38 Entry { name: "dir", tags: &["*"], attr: "dir", kind: K::Enum(&EnumSpec { kw: &["ltr", "rtl", "auto"], def: Some(""), inv: Some(""), canon: &[], nullable: false }), get: true },
39 Entry { name: "dirName", tags: &["input", "textarea"], attr: "dirname", kind: K::Str, get: true },
40 Entry { name: "enterKeyHint", tags: &["undefinedelement"], attr: "enterkeyhint", kind: K::Enum(&EnumSpec { kw: &["enter", "done", "go", "next", "previous", "search", "send"], def: Some(""), inv: Some(""), canon: &[], nullable: false }), get: true },
41 Entry { name: "event", tags: &["script"], attr: "event", kind: K::Str, get: true },
42 Entry { name: "face", tags: &["font"], attr: "face", kind: K::Str, get: true },
43 Entry { name: "formAction", tags: &["button", "input"], attr: "formaction", kind: K::Url, get: true },
44 Entry { name: "formEnctype", tags: &["button", "input"], attr: "formenctype", kind: K::Enum(&EnumSpec { kw: &["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], def: Some(""), inv: Some("application/x-www-form-urlencoded"), canon: &[], nullable: false }), get: true },
45 Entry { name: "formMethod", tags: &["button"], attr: "formmethod", kind: K::Enum(&EnumSpec { kw: &["get", "post", "dialog"], def: Some(""), inv: Some("get"), canon: &[], nullable: false }), get: true },
46 Entry { name: "formMethod", tags: &["input"], attr: "formmethod", kind: K::Enum(&EnumSpec { kw: &["get", "post"], def: Some(""), inv: Some("get"), canon: &[], nullable: false }), get: true },
47 Entry { name: "frame", tags: &["table"], attr: "frame", kind: K::Str, get: true },
48 Entry { name: "frameBorder", tags: &["frame", "iframe"], attr: "frameborder", kind: K::Str, get: true },
49 Entry { name: "height", tags: &["canvas"], attr: "height", kind: K::ULong(150), get: true },
50 Entry { name: "height", tags: &["img"], attr: "height", kind: K::ULong(0), get: false },
51 Entry { name: "height", tags: &["input", "video"], attr: "height", kind: K::ULong(0), get: true },
52 Entry { name: "height", tags: &["marquee", "td", "th"], attr: "height", kind: K::Str, get: true },
53 Entry { name: "href", tags: &["a", "area", "link"], attr: "href", kind: K::Url, get: true },
54 Entry { name: "hspace", tags: &["img", "marquee", "object"], attr: "hspace", kind: K::ULong(0), get: true },
55 Entry { name: "htmlFor", tags: &["script"], attr: "for", kind: K::Str, get: true },
56 Entry { name: "inputMode", tags: &["undefinedelement"], attr: "inputmode", kind: K::Enum(&EnumSpec { kw: &["none", "text", "tel", "url", "email", "numeric", "decimal", "search"], def: Some(""), inv: Some(""), canon: &[], nullable: false }), get: true },
57 Entry { name: "link", tags: &["body"], attr: "link", kind: K::StrNe, get: true },
58 Entry { name: "loading", tags: &["audio", "video"], attr: "loading", kind: K::Enum(&EnumSpec { kw: &["lazy", "eager"], def: Some("eager"), inv: Some("eager"), canon: &[], nullable: false }), get: true },
59 Entry { name: "longDesc", tags: &["frame", "iframe", "img"], attr: "longdesc", kind: K::Url, get: true },
60 Entry { name: "lowsrc", tags: &["img"], attr: "lowsrc", kind: K::Url, get: true },
61 Entry { name: "marginHeight", tags: &["frame", "iframe"], attr: "marginheight", kind: K::StrNe, get: true },
62 Entry { name: "marginWidth", tags: &["frame", "iframe"], attr: "marginwidth", kind: K::StrNe, get: true },
63 Entry { name: "max", tags: &["progress"], attr: "max", kind: K::LimDouble(1.0), get: true },
64 Entry { name: "maxLength", tags: &["input", "textarea"], attr: "maxlength", kind: K::LimLong(-1), get: true },
65 Entry { name: "minLength", tags: &["input", "textarea"], attr: "minlength", kind: K::LimLong(-1), get: true },
66 Entry { name: "noHref", tags: &["area"], attr: "nohref", kind: K::Bool, get: true },
67 Entry { name: "noResize", tags: &["frame"], attr: "noresize", kind: K::Bool, get: true },
68 Entry { name: "noShade", tags: &["hr"], attr: "noshade", kind: K::Bool, get: true },
69 Entry { name: "noWrap", tags: &["td", "th"], attr: "nowrap", kind: K::Bool, get: true },
70 Entry { name: "nonce", tags: &["link", "style"], attr: "nonce", kind: K::Str, get: true },
71 Entry { name: "poster", tags: &["video"], attr: "poster", kind: K::Url, get: true },
72 Entry { name: "referrerPolicy", tags: &["a", "area", "iframe", "img", "link"], attr: "referrerpolicy", kind: K::Enum(&EnumSpec { kw: &["", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url"], def: Some(""), inv: Some(""), canon: &[], nullable: false }), get: true },
73 Entry { name: "rev", tags: &["a", "link"], attr: "rev", kind: K::Str, get: true },
74 Entry { name: "rowSpan", tags: &["td", "th"], attr: "rowspan", kind: K::Clamped(0, 65534, 1), get: true },
75 Entry { name: "rows", tags: &["frameset"], attr: "rows", kind: K::Str, get: true },
76 Entry { name: "rows", tags: &["textarea"], attr: "rows", kind: K::LimULongFb(2), get: true },
77 Entry { name: "rules", tags: &["table"], attr: "rules", kind: K::Str, get: true },
78 Entry { name: "scheme", tags: &["meta"], attr: "scheme", kind: K::Str, get: true },
79 Entry { name: "scope", tags: &["td"], attr: "scope", kind: K::Enum(&EnumSpec { kw: &["row", "col", "rowgroup", "colgroup"], def: Some(""), inv: Some(""), canon: &[], nullable: false }), get: true },
80 Entry { name: "scrollAmount", tags: &["marquee"], attr: "scrollamount", kind: K::ULong(6), get: true },
81 Entry { name: "scrollDelay", tags: &["marquee"], attr: "scrolldelay", kind: K::ULong(85), get: true },
82 Entry { name: "scrolling", tags: &["frame", "iframe"], attr: "scrolling", kind: K::Str, get: true },
83 Entry { name: "shape", tags: &["a", "area"], attr: "shape", kind: K::Str, get: true },
84 Entry { name: "size", tags: &["font", "hr"], attr: "size", kind: K::Str, get: true },
85 Entry { name: "size", tags: &["input"], attr: "size", kind: K::LimULong(20), get: true },
86 Entry { name: "size", tags: &["select"], attr: "size", kind: K::ULong(0), get: true },
87 Entry { name: "span", tags: &["col", "colgroup"], attr: "span", kind: K::Clamped(1, 1000, 1), get: true },
88 Entry { name: "src", tags: &["audio", "embed", "frame", "iframe", "img", "input", "script", "source", "track", "video"], attr: "src", kind: K::Url, get: true },
89 Entry { name: "standby", tags: &["object"], attr: "standby", kind: K::Str, get: true },
90 Entry { name: "start", tags: &["ol"], attr: "start", kind: K::Long(Some(1)), get: true },
91 Entry { name: "summary", tags: &["table"], attr: "summary", kind: K::Str, get: true },
92 Entry { name: "switch", tags: &["input"], attr: "switch", kind: K::Bool, get: true },
93 Entry { name: "tabIndex", tags: &["*"], attr: "tabindex", kind: K::Long(None), get: true },
94 Entry { name: "text", tags: &["body"], attr: "text", kind: K::StrNe, get: true },
95 Entry { name: "trueSpeed", tags: &["marquee"], attr: "truespeed", kind: K::Bool, get: true },
96 Entry { name: "type", tags: &["input"], attr: "type", kind: K::Enum(&EnumSpec { kw: &["hidden", "text", "search", "tel", "url", "email", "password", "date", "time", "datetime-local", "number", "range", "color", "checkbox", "radio", "file", "submit", "image", "reset", "button", "month", "week"], def: Some("text"), inv: Some("text"), canon: &[], nullable: false }), get: true },
97 Entry { name: "type", tags: &["ol"], attr: "type", kind: K::Str, get: true },
98 Entry { name: "vAlign", tags: &["col", "colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"], attr: "valign", kind: K::Str, get: true },
99 Entry { name: "vLink", tags: &["body"], attr: "vlink", kind: K::StrNe, get: true },
100 Entry { name: "value", tags: &["li"], attr: "value", kind: K::Long(Some(0)), get: true },
101 Entry { name: "valueType", tags: &["param"], attr: "valuetype", kind: K::Str, get: true },
102 Entry { name: "version", tags: &["html"], attr: "version", kind: K::Str, get: true },
103 Entry { name: "vspace", tags: &["img", "marquee", "object"], attr: "vspace", kind: K::ULong(0), get: true },
104 Entry { name: "width", tags: &["canvas"], attr: "width", kind: K::ULong(300), get: true },
105 Entry { name: "width", tags: &["col", "colgroup", "hr", "marquee", "table", "td", "th"], attr: "width", kind: K::Str, get: true },
106 Entry { name: "width", tags: &["img"], attr: "width", kind: K::ULong(0), get: false },
107 Entry { name: "width", tags: &["input", "video"], attr: "width", kind: K::ULong(0), get: true },
108 Entry { name: "width", tags: &["pre"], attr: "width", kind: K::Long(Some(0)), get: true },
109 Entry { name: "wrap", tags: &["textarea"], attr: "wrap", kind: K::Str, get: true },
110];