1 //! Dictionaries used in the byte code. Each dictionary must have no more than 255 entries.
3 /// All known HTML tag names.
5 /// Taken from https://html.spec.whatwg.org/#elements-3, minus <mathml> and <svg>.
6 pub static CREATE_ELEMENT
: [&str; 112] = [
121 /// All known SVG tag names.
123 /// Taken from https://svgwg.org/svg2-draft/eltindex.html.
124 pub static CREATE_SVG_ELEMENT
: [&str; 64] = [
137 "feComponentTransfer",
156 "feSpecularLighting",
192 /// All known HTML attribute names.
194 /// Taken from https://html.spec.whatwg.org/#attributes-3, *excluding* the event handler content
197 /// Also added all the ARIA attributes (using the list from the SVG spec, TODO source better).
198 pub static HTML_ATTRIBUTE_NAMES: [&str; 172] = [
206 "allowpaymentrequest",
208 "aria-activedescendant",
236 "aria-multiselectable",
245 "aria-roledescription",
373 /// All known SVG attribute names.
375 /// Taken from https://svgwg.org/svg2-draft/attindex.html#RegularAttributes, *excluding* the “on*”
376 /// event handler attributes. Presentation attributes are also excluded, not being in that section.
377 pub static SVG_ATTRIBUTE_NAMES: [&str; 184] = [
381 "aria-activedescendant",
409 "aria-multiselectable",
418 "aria-roledescription",
496 "patternContentUnits",
506 "preserveAspectRatio",
516 "requiredExtensions",
564 /// A unified dictionary of HTML and SVG attributes. A work in progress, because there are too many
565 /// in total, so I want to remove some obsolete or extremely uncommon ones.
566 pub static ATTRIBUTE_NAMES: [&str; 287] = [ // XXX: 287 is too long, cull some I suppose.
576 "allowpaymentrequest",
579 "aria-activedescendant",
607 "aria-multiselectable",
616 "aria-roledescription",
760 "patternContentUnits",
774 "preserveAspectRatio",
786 "requiredExtensions",
856 /// All known SVG event names.
858 /// Taken from https://svgwg.org/svg2-draft/attindex.html, all the “on…” attribute names.
859 /// TODO better source.
860 pub static SVG_EVENT_NAMES: [&str; 77] = [
940 // TODO: make a dictionary of known attribute values (e.g. "", "true", "false", "stylesheet", "icon")
942 /// All known HTML event names.
944 /// Taken from https://html.spec.whatwg.org/#events-2, https://html.spec.whatwg.org/#mediaevents,
945 /// https://html.spec.whatwg.org/#appcacheevents and https://html.spec.whatwg.org/#dndevents.
946 /// TODO what about other things like upgrade?
947 pub static HTML_EVENT_NAMES: [&str; 77] = [
1010 "securitypolicyviolation",
1020 "unhandledrejection",
1027 pub static ATTRIBUTE_VALUES: [&str; 120] = [
1082 // <form enctype>, formenctype
1083 "application/x-www-form-urlencoded",
1084 "multipart/form-data",
1106 "content-security-policy",
1129 "no-referrer-when-downgrade",
1133 "origin-when-cross-origin",
1134 "strict-origin-when-cross-origin",
1183 // Also <button type>