1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942 |
- #![allow(non_upper_case_globals)]
- use dioxus_core::prelude::IntoAttributeValue;
- use dioxus_core::HasAttributes;
- use dioxus_html_internal_macro::impl_extension_attributes;
- #[cfg(feature = "hot-reload-context")]
- use dioxus_rsx::HotReloadingContext;
- #[cfg(feature = "hot-reload-context")]
- use crate::{map_global_attributes, map_svg_attributes};
- use crate::{GlobalAttributes, SvgAttributes};
- pub type AttributeDiscription = (&'static str, Option<&'static str>, bool);
- macro_rules! impl_attribute {
- (
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident (DEFAULT),
- ) => {
- pub const $fil: AttributeDiscription = (stringify!($fil), None, false);
- };
- (
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident ($name:literal),
- ) => {
- pub const $fil: AttributeDiscription = ($name, None, false);
- };
- (
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident (volatile),
- ) => {
- pub const $fil: AttributeDiscription = (stringify!($fil), None, true);
- };
- (
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident (in $ns:literal),
- ) => {
- pub const $fil: AttributeDiscription = (stringify!($fil), Some($ns), false)
- };
- (
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident (in $ns:literal : volatile),
- ) => {
- pub const $fil: AttributeDiscription = (stringify!($fil), Some($ns), true)
- };
- }
- #[cfg(feature = "hot-reload-context")]
- macro_rules! impl_attribute_match {
- (
- $attr:ident $fil:ident: $vil:ident (DEFAULT),
- ) => {
- if $attr == stringify!($fil) {
- return Some((stringify!($fil), None));
- }
- };
- (
- $attr:ident $fil:ident: $vil:ident (volatile),
- ) => {
- if $attr == stringify!($fil) {
- return Some((stringify!($fil), None));
- }
- };
- (
- $attr:ident $fil:ident: $vil:ident ($name:literal),
- ) => {
- if $attr == stringify!($fil) {
- return Some(($name, None));
- }
- };
- (
- $attr:ident $fil:ident: $vil:ident (in $ns:literal),
- ) => {
- if $attr == stringify!($fil) {
- return Some((stringify!(fil), Some($ns)));
- }
- };
- }
- #[cfg(feature = "html-to-rsx")]
- macro_rules! impl_html_to_rsx_attribute_match {
- (
- $attr:ident $fil:ident $name:literal
- ) => {
- if $attr == $name {
- return Some(stringify!($fil));
- }
- };
- (
- $attr:ident $fil:ident $_:tt
- ) => {
- if $attr == stringify!($fil) {
- return Some(stringify!($fil));
- }
- };
- }
- macro_rules! impl_element {
- (
- $(#[$attr:meta])*
- $name:ident None {
- $(
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- #[allow(non_camel_case_types)]
- $(#[$attr])*
- pub struct $name;
- impl $name {
- pub const TAG_NAME: &'static str = stringify!($name);
- pub const NAME_SPACE: Option<&'static str> = None;
- $(
- impl_attribute!(
- $(#[$attr_method])*
- $fil: $vil ($extra),
- );
- )*
- }
- impl GlobalAttributes for $name {}
- };
- (
- $(#[$attr:meta])*
- $name:ident $namespace:literal {
- $(
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- #[allow(non_camel_case_types)]
- $(#[$attr])*
- pub struct $name;
- impl SvgAttributes for $name {}
- impl $name {
- pub const TAG_NAME: &'static str = stringify!($name);
- pub const NAME_SPACE: Option<&'static str> = Some($namespace);
- $(
- impl_attribute!(
- $(#[$attr_method])*
- $fil: $vil ($extra),
- );
- )*
- }
- };
- (
- $(#[$attr:meta])*
- $element:ident [$name:literal, $namespace:tt] {
- $(
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- #[allow(non_camel_case_types)]
- $(#[$attr])*
- pub struct $element;
- impl SvgAttributes for $element {}
- impl $element {
- pub const TAG_NAME: &'static str = $name;
- pub const NAME_SPACE: Option<&'static str> = Some($namespace);
- $(
- impl_attribute!(
- $(#[$attr_method])*
- $fil: $vil ($extra),
- );
- )*
- }
- }
- }
- #[cfg(feature = "hot-reload-context")]
- macro_rules! impl_element_match {
- (
- $el:ident $name:ident None {
- $(
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- if $el == stringify!($name) {
- return Some((stringify!($name), None));
- }
- };
- (
- $el:ident $name:ident $namespace:literal {
- $(
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- if $el == stringify!($name) {
- return Some((stringify!($name), Some($namespace)));
- }
- };
- (
- $el:ident $name:ident [$_:literal, $namespace:tt] {
- $(
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- if $el == stringify!($name) {
- return Some((stringify!($name), Some($namespace)));
- }
- };
- }
- #[cfg(feature = "hot-reload-context")]
- macro_rules! impl_element_match_attributes {
- (
- $el:ident $attr:ident $name:ident None {
- $(
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- if $el == stringify!($name) {
- $(
- impl_attribute_match!(
- $attr $fil: $vil ($extra),
- );
- )*
- return impl_map_global_attributes!($el $attr $name None);
- }
- };
- (
- $el:ident $attr:ident $name:ident $namespace:tt {
- $(
- $fil:ident: $vil:ident $extra:tt,
- )*
- }
- ) => {
- if $el == stringify!($name) {
- $(
- impl_attribute_match!(
- $attr $fil: $vil ($extra),
- );
- )*
- return impl_map_global_attributes!($el $attr $name $namespace);
- }
- }
- }
- #[cfg(feature = "hot-reload-context")]
- macro_rules! impl_map_global_attributes {
- (
- $el:ident $attr:ident $element:ident None
- ) => {
- map_global_attributes($attr)
- };
- (
- $el:ident $attr:ident $element:ident $namespace:literal
- ) => {
- if $namespace == "http://www.w3.org/2000/svg" {
- map_svg_attributes($attr)
- } else {
- map_global_attributes($attr)
- }
- };
- (
- $el:ident $attr:ident $element:ident [$name:literal, $namespace:tt]
- ) => {
- if $namespace == "http://www.w3.org/2000/svg" {
- map_svg_attributes($attr)
- } else {
- map_global_attributes($attr)
- }
- };
- }
- macro_rules! builder_constructors {
- (
- $(
- $(#[$attr:meta])*
- $name:ident $namespace:tt {
- $(
- $(#[$attr_method:meta])*
- $fil:ident: $vil:ident $extra:tt,
- )*
- };
- )*
- ) => {
- #[cfg(feature = "hot-reload-context")]
- pub struct HtmlCtx;
- #[cfg(feature = "hot-reload-context")]
- impl HotReloadingContext for HtmlCtx {
- fn map_attribute(element: &str, attribute: &str) -> Option<(&'static str, Option<&'static str>)> {
- $(
- impl_element_match_attributes!(
- element attribute $name $namespace {
- $(
- $fil: $vil $extra,
- )*
- }
- );
- )*
- None
- }
- fn map_element(element: &str) -> Option<(&'static str, Option<&'static str>)> {
- $(
- impl_element_match!(
- element $name $namespace {
- $(
- $fil: $vil $extra,
- )*
- }
- );
- )*
- None
- }
- }
- #[cfg(feature = "html-to-rsx")]
- pub fn map_html_attribute_to_rsx(html: &str) -> Option<&'static str> {
- $(
- $(
- impl_html_to_rsx_attribute_match!(
- html $fil $extra
- );
- )*
- )*
- if let Some(name) = crate::map_html_global_attributes_to_rsx(html) {
- return Some(name);
- }
- if let Some(name) = crate::map_html_svg_attributes_to_rsx(html) {
- return Some(name);
- }
- None
- }
- #[cfg(feature = "html-to-rsx")]
- pub fn map_html_element_to_rsx(html: &str) -> Option<&'static str> {
- $(
- if html == stringify!($name) {
- return Some(stringify!($name));
- }
- )*
- None
- }
- $(
- impl_element!(
- $(#[$attr])*
- $name $namespace {
- $(
- $(#[$attr_method])*
- $fil: $vil $extra,
- )*
- }
- );
- )*
- pub(crate) mod extensions {
- use super::*;
- $(
- impl_extension_attributes![ELEMENT $name { $($fil,)* }];
- )*
- }
- };
- }
- // Organized in the same order as
- // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
- //
- // Does not include obsolete elements.
- //
- // This namespace represents a collection of modern HTML-5 compatiable elements.
- //
- // This list does not include obsolete, deprecated, experimental, or poorly supported elements.
- builder_constructors! {
- // Document metadata
- /// Build a
- /// [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base)
- /// element.
- ///
- base None {
- href: Uri DEFAULT,
- target: Target DEFAULT,
- };
- /// Build a
- /// [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)
- /// element.
- head None {};
- /// Build a
- /// [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)
- /// element.
- link None {
- // as: Mime,
- crossorigin: CrossOrigin DEFAULT,
- href: Uri DEFAULT,
- hreflang: LanguageTag DEFAULT,
- media: String DEFAULT, // FIXME media query
- rel: LinkType DEFAULT,
- sizes: String DEFAULT, // FIXME
- title: String DEFAULT, // FIXME
- r#type: Mime "type",
- integrity: String DEFAULT,
- };
- /// Build a
- /// [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta)
- /// element.
- meta None {
- charset: String DEFAULT, // FIXME IANA standard names
- content: String DEFAULT,
- http_equiv: String "http-equiv",
- name: Metadata DEFAULT,
- };
- /// Build a
- /// [`<style>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style)
- /// element.
- style None {
- r#type: Mime "type",
- media: String DEFAULT, // FIXME media query
- nonce: Nonce DEFAULT,
- title: String DEFAULT, // FIXME
- };
- /// Build a
- /// [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title)
- /// element.
- title None { };
- // Sectioning root
- /// Build a
- /// [`<body>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body)
- /// element.
- body None {};
- // ------------------
- // Content sectioning
- // ------------------
- /// Build a
- /// [`<address>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address)
- /// element.
- address None {};
- /// Build a
- /// [`<article>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article)
- /// element.
- article None {};
- /// Build a
- /// [`<aside>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside)
- /// element.
- aside None {};
- /// Build a
- /// [`<footer>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer)
- /// element.
- footer None {};
- /// Build a
- /// [`<header>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header)
- /// element.
- header None {};
- /// Build a
- /// [`<hgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup)
- /// element.
- hgroup None {};
- /// Build a
- /// [`<h1>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1)
- /// element.
- ///
- /// # About
- /// - The HTML `<h1>` element is found within the `<body>` tag.
- /// - Headings can range from `<h1>` to `<h6>`.
- /// - The most important heading is `<h1>` and the least important heading is `<h6>`.
- /// - The `<h1>` heading is the first heading in the document.
- /// - The `<h1>` heading is usually a large bolded font.
- ///
- /// # Usage
- ///
- /// ```rust, ignore
- /// html!(<h1> A header element </h1>)
- /// rsx!(h1 { "A header element" })
- /// LazyNodes::new(|f| f.el(h1).children([f.text("A header element")]).finish())
- /// ```
- h1 None {};
- /// Build a
- /// [`<h2>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2)
- /// element.
- ///
- /// # About
- /// - The HTML `<h2>` element is found within the `<body>` tag.
- /// - Headings can range from `<h1>` to `<h6>`.
- /// - The most important heading is `<h1>` and the least important heading is `<h6>`.
- /// - The `<h2>` heading is the second heading in the document.
- /// - The `<h2>` heading is usually a large bolded font.
- ///
- /// # Usage
- /// ```rust, ignore
- /// html!(<h2> A header element </h2>)
- /// rsx!(h2 { "A header element" })
- /// LazyNodes::new(|f| f.el(h2).children([f.text("A header element")]).finish())
- /// ```
- h2 None {};
- /// Build a
- /// [`<h3>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3)
- /// element.
- ///
- /// # About
- /// - The HTML <h1> element is found within the <body> tag.
- /// - Headings can range from <h1> to <h6>.
- /// - The most important heading is <h1> and the least important heading is <h6>.
- /// - The <h1> heading is the first heading in the document.
- /// - The <h1> heading is usually a large bolded font.
- h3 None {};
- /// Build a
- /// [`<h4>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4)
- /// element.
- h4 None {};
- /// Build a
- /// [`<h5>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5)
- /// element.
- h5 None {};
- /// Build a
- /// [`<h6>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6)
- /// element.
- h6 None {};
- /// Build a
- /// [`<main>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main)
- /// element.
- main None {};
- /// Build a
- /// [`<nav>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav)
- /// element.
- nav None {};
- /// Build a
- /// [`<section>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section)
- /// element.
- section None {};
- // Text content
- /// Build a
- /// [`<blockquote>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote)
- /// element.
- blockquote None {
- cite: Uri DEFAULT,
- };
- /// Build a
- /// [`<dd>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd)
- /// element.
- dd None {};
- /// Build a
- /// [`<div>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div)
- /// element.
- ///
- /// Part of the HTML namespace. Only works in HTML-compatible renderers
- ///
- /// ## Definition and Usage
- /// - The <div> tag defines a division or a section in an HTML document.
- /// - The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.
- /// - The <div> tag is easily styled by using the class or id attribute.
- /// - Any sort of content can be put inside the <div> tag!
- ///
- /// Note: By default, browsers always place a line break before and after the <div> element.
- ///
- /// ## Usage
- /// ```rust, ignore
- /// html!(<div> A header element </div>)
- /// rsx!(div { "A header element" })
- /// LazyNodes::new(|f| f.element(div, &[], &[], &[], None))
- /// ```
- ///
- /// ## References:
- /// - <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div>
- /// - <https://www.w3schools.com/tags/tag_div.asp>
- div None {};
- /// Build a
- /// [`<dl>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl)
- /// element.
- dl None {};
- /// Build a
- /// [`<dt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt)
- /// element.
- dt None {};
- /// Build a
- /// [`<figcaption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption)
- /// element.
- figcaption None {};
- /// Build a
- /// [`<figure>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure)
- /// element.
- figure None {};
- /// Build a
- /// [`<hr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr)
- /// element.
- hr None {};
- /// Build a
- /// [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li)
- /// element.
- li None {
- value: isize DEFAULT,
- };
- /// Build a
- /// [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol)
- /// element.
- ol None {
- reversed: Bool DEFAULT,
- start: isize DEFAULT,
- r#type: OrderedListType "type",
- };
- /// Build a
- /// [`<p>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)
- /// element.
- p None {};
- /// Build a
- /// [`<pre>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre)
- /// element.
- pre None {};
- /// Build a
- /// [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul)
- /// element.
- ul None {};
- // Inline text semantics
- /// Build a
- /// [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
- /// element.
- a None {
- download: String DEFAULT,
- href: Uri DEFAULT,
- hreflang: LanguageTag DEFAULT,
- target: Target DEFAULT,
- r#type: Mime "type",
- // ping: SpacedList<Uri>,
- // rel: SpacedList<LinkType>,
- ping: SpacedList DEFAULT,
- rel: SpacedList DEFAULT,
- };
- /// Build a
- /// [`<abbr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr)
- /// element.
- abbr None {};
- /// Build a
- /// [`<b>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b)
- /// element.
- b None {};
- /// Build a
- /// [`<bdi>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi)
- /// element.
- bdi None {};
- /// Build a
- /// [`<bdo>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo)
- /// element.
- bdo None {};
- /// Build a
- /// [`<br>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br)
- /// element.
- br None {};
- /// Build a
- /// [`<cite>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite)
- /// element.
- cite None {};
- /// Build a
- /// [`<code>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code)
- /// element.
- code None {
- language: String DEFAULT,
- };
- /// Build a
- /// [`<data>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data)
- /// element.
- data None {
- value: String DEFAULT,
- };
- /// Build a
- /// [`<dfn>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn)
- /// element.
- dfn None {};
- /// Build a
- /// [`<em>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em)
- /// element.
- em None {};
- /// Build a
- /// [`<i>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i)
- /// element.
- i None {};
- /// Build a
- /// [`<kbd>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd)
- /// element.
- kbd None {};
- /// Build a
- /// [`<mark>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark)
- /// element.
- mark None {};
- /// Build a
- /// [`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu)
- /// element.
- menu None {};
- /// Build a
- /// [`<q>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q)
- /// element.
- q None {
- cite: Uri DEFAULT,
- };
- /// Build a
- /// [`<rp>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp)
- /// element.
- rp None {};
- /// Build a
- /// [`<rt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt)
- /// element.
- rt None {};
- /// Build a
- /// [`<ruby>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby)
- /// element.
- ruby None {};
- /// Build a
- /// [`<s>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s)
- /// element.
- s None {};
- /// Build a
- /// [`<samp>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp)
- /// element.
- samp None {};
- /// Build a
- /// [`<small>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small)
- /// element.
- small None {};
- /// Build a
- /// [`<span>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span)
- /// element.
- span None {};
- /// Build a
- /// [`<strong>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong)
- /// element.
- strong None {};
- /// Build a
- /// [`<sub>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub)
- /// element.
- sub None {};
- /// Build a
- /// [`<sup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup)
- /// element.
- sup None {};
- /// Build a
- /// [`<time>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time)
- /// element.
- time None {
- datetime: Datetime DEFAULT,
- };
- /// Build a
- /// [`<u>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u)
- /// element.
- u None {};
- /// Build a
- /// [`<var>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var)
- /// element.
- var None {};
- /// Build a
- /// [`<wbr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr)
- /// element.
- wbr None {};
- // Image and multimedia
- /// Build a
- /// [`<area>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area)
- /// element.
- area None {
- alt: String DEFAULT,
- coords: String DEFAULT, // TODO could perhaps be validated
- download: Bool DEFAULT,
- href: Uri DEFAULT,
- hreflang: LanguageTag DEFAULT,
- shape: AreaShape DEFAULT,
- target: Target DEFAULT,
- // ping: SpacedList<Uri>,
- // rel: SpacedSet<LinkType>,
- };
- /// Build a
- /// [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio)
- /// element.
- audio None {
- autoplay: Bool DEFAULT,
- controls: Bool DEFAULT,
- crossorigin: CrossOrigin DEFAULT,
- muted: Bool DEFAULT,
- preload: Preload DEFAULT,
- src: Uri DEFAULT,
- r#loop: Bool "loop",
- };
- /// Build a
- /// [`<img>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)
- /// element.
- img None {
- alt: String DEFAULT,
- crossorigin: CrossOrigin DEFAULT,
- decoding: ImageDecoding DEFAULT,
- height: usize DEFAULT,
- ismap: Bool DEFAULT,
- loading: String DEFAULT,
- src: Uri DEFAULT,
- srcset: String DEFAULT, // FIXME this is much more complicated
- usemap: String DEFAULT, // FIXME should be a fragment starting with '#'
- width: usize DEFAULT,
- referrerpolicy: String DEFAULT,
- // sizes: SpacedList<String>, // FIXME it's not really just a string
- };
- /// Build a
- /// [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map)
- /// element.
- map None {
- name: Id DEFAULT,
- };
- /// Build a
- /// [`<track>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track)
- /// element.
- track None {
- default: Bool DEFAULT,
- kind: VideoKind DEFAULT,
- label: String DEFAULT,
- src: Uri DEFAULT,
- srclang: LanguageTag DEFAULT,
- };
- /// Build a
- /// [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video)
- /// element.
- video None {
- autoplay: Bool DEFAULT,
- controls: Bool DEFAULT,
- crossorigin: CrossOrigin DEFAULT,
- height: usize DEFAULT,
- r#loop: Bool "loop",
- muted: Bool DEFAULT,
- preload: Preload DEFAULT,
- playsinline: Bool DEFAULT,
- poster: Uri DEFAULT,
- src: Uri DEFAULT,
- width: usize DEFAULT,
- };
- // Embedded content
- /// Build a
- /// [`<embed>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed)
- /// element.
- embed None {
- height: usize DEFAULT,
- src: Uri DEFAULT,
- r#type: Mime "type",
- width: usize DEFAULT,
- };
- /// Build a
- /// [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)
- /// element.
- iframe None {
- allow: FeaturePolicy DEFAULT,
- allowfullscreen: Bool DEFAULT,
- allowpaymentrequest: Bool DEFAULT,
- height: usize DEFAULT,
- name: Id DEFAULT,
- referrerpolicy: ReferrerPolicy DEFAULT,
- src: Uri DEFAULT,
- srcdoc: Uri DEFAULT,
- width: usize DEFAULT,
- margin_width: String "marginWidth",
- align: String DEFAULT,
- longdesc: String DEFAULT,
- scrolling: String DEFAULT,
- margin_height: String "marginHeight",
- frame_border: String "frameBorder",
- // sandbox: SpacedSet<Sandbox>,
- };
- /// Build a
- /// [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object)
- /// element.
- object None {
- data: Uri DEFAULT,
- form: Id DEFAULT,
- height: usize DEFAULT,
- name: Id DEFAULT,
- r#type: Mime "type",
- typemustmatch: Bool DEFAULT,
- usemap: String DEFAULT, // TODO should be a fragment starting with '#'
- width: usize DEFAULT,
- };
- /// Build a
- /// [`<param>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param)
- /// element.
- param None {
- name: String DEFAULT,
- value: String DEFAULT,
- };
- /// Build a
- /// [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture)
- /// element.
- picture None {};
- /// Build a
- /// [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source)
- /// element.
- source None {
- src: Uri DEFAULT,
- r#type: Mime "type",
- };
- // Scripting
- /// Build a
- /// [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas)
- /// element.
- canvas None {
- height: usize DEFAULT,
- width: usize DEFAULT,
- };
- /// Build a
- /// [`<noscript>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript)
- /// element.
- noscript None {};
- /// Build a
- /// [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)
- /// element.
- ///
- /// The [`script`] HTML element is used to embed executable code or data; this is typically used to embed or refer to
- /// JavaScript code. The [`script`] element can also be used with other languages, such as WebGL's GLSL shader
- /// programming language and JSON.
- script None {
- /// Normal script elements pass minimal information to the window.onerror for scripts which do not pass the
- /// standard CORS checks. To allow error logging for sites which use a separate domain for static media, use
- /// this attribute. See CORS settings attributes for a more descriptive explanation of its valid arguments.
- crossorigin: CrossOrigin DEFAULT,
- /// This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the
- /// document has been parsed, but before firing DOMContentLoaded.
- ///
- /// Scripts with the defer attribute will prevent the DOMContentLoaded event from firing until the script has
- /// loaded and finished evaluating.
- ///
- /// ----
- /// ### Warning:
- ///
- /// This attribute must not be used if the src attribute is absent (i.e. for inline scripts), in this
- /// case it would have no effect.
- ///
- /// ----
- ///
- /// The defer attribute has no effect on module scripts — they defer by default.
- /// Scripts with the defer attribute will execute in the order in which they appear in the document.
- ///
- /// This attribute allows the elimination of parser-blocking JavaScript where the browser would have to load and
- /// evaluate scripts before continuing to parse. async has a similar effect in this case.
- defer: Bool DEFAULT,
- integrity: Integrity DEFAULT,
- nomodule: Bool DEFAULT,
- nonce: Nonce DEFAULT,
- src: Uri DEFAULT,
- text: String DEFAULT,
- r#async: Bool "async",
- r#type: String "type", // TODO could be an enum
- r#script: String "script",
- };
- // Demarcating edits
- /// Build a
- /// [`<del>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del)
- /// element.
- del None {
- cite: Uri DEFAULT,
- datetime: Datetime DEFAULT,
- };
- /// Build a
- /// [`<ins>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins)
- /// element.
- ins None {
- cite: Uri DEFAULT,
- datetime: Datetime DEFAULT,
- };
- // Table content
- /// Build a
- /// [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption)
- /// element.
- caption None {};
- /// Build a
- /// [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col)
- /// element.
- col None {
- span: usize DEFAULT,
- };
- /// Build a
- /// [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup)
- /// element.
- colgroup None {
- span: usize DEFAULT,
- };
- /// Build a
- /// [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table)
- /// element.
- table None {};
- /// Build a
- /// [`<tbody>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody)
- /// element.
- tbody None {};
- /// Build a
- /// [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td)
- /// element.
- td None {
- colspan: usize DEFAULT,
- rowspan: usize DEFAULT,
- // headers: SpacedSet<Id>,
- };
- /// Build a
- /// [`<tfoot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot)
- /// element.
- tfoot None {};
- /// Build a
- /// [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th)
- /// element.
- th None {
- abbr: String DEFAULT,
- colspan: usize DEFAULT,
- rowspan: usize DEFAULT,
- scope: TableHeaderScope DEFAULT,
- // headers: SpacedSet<Id>,
- };
- /// Build a
- /// [`<thead>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead)
- /// element.
- thead None {};
- /// Build a
- /// [`<tr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr)
- /// element.
- tr None {};
- // Forms
- /// Build a
- /// [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button)
- /// element.
- button None {
- autofocus: Bool DEFAULT,
- disabled: Bool DEFAULT,
- form: Id DEFAULT,
- formaction: Uri DEFAULT,
- formenctype: FormEncodingType DEFAULT,
- formmethod: FormMethod DEFAULT,
- formnovalidate: Bool DEFAULT,
- formtarget: Target DEFAULT,
- name: Id DEFAULT,
- value: String DEFAULT,
- r#type: String "type",
- };
- /// Build a
- /// [`<datalist>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist)
- /// element.
- datalist None {};
- /// Build a
- /// [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)
- /// element.
- fieldset None {};
- /// Build a
- /// [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form)
- /// element.
- form None {
- // accept-charset: SpacedList<CharacterEncoding>,
- action: Uri DEFAULT,
- autocomplete: OnOff DEFAULT,
- enctype: FormEncodingType DEFAULT,
- method: FormMethod DEFAULT,
- name: Id DEFAULT,
- novalidate: Bool DEFAULT,
- target: Target DEFAULT,
- };
- /// Build a
- /// [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input)
- /// element.
- input None {
- accept: String DEFAULT,
- alt: String DEFAULT,
- autocomplete: String DEFAULT,
- autofocus: Bool DEFAULT,
- capture: String DEFAULT,
- checked: Bool DEFAULT,
- directory: Bool "webkitdirectory",
- disabled: Bool DEFAULT,
- form: Id DEFAULT,
- formaction: Uri DEFAULT,
- formenctype: FormEncodingType DEFAULT,
- formmethod: FormDialogMethod DEFAULT,
- formnovalidate: Bool DEFAULT,
- formtarget: Target DEFAULT,
- height: isize DEFAULT,
- initial_checked: Bool DEFAULT,
- list: Id DEFAULT,
- max: String DEFAULT,
- maxlength: usize DEFAULT,
- min: String DEFAULT,
- minlength: usize DEFAULT,
- multiple: Bool DEFAULT,
- name: Id DEFAULT,
- pattern: String DEFAULT,
- placeholder: String DEFAULT,
- readonly: Bool DEFAULT,
- required: Bool DEFAULT,
- size: usize DEFAULT,
- spellcheck: Bool DEFAULT,
- src: Uri DEFAULT,
- step: String DEFAULT,
- tabindex: usize DEFAULT,
- width: isize DEFAULT,
- /// The type of input
- ///
- /// Here are the different input types you can use in HTML:
- ///
- /// - `button`
- /// - `checkbox`
- /// - `color`
- /// - `date`
- /// - `datetime-local`
- /// - `email`
- /// - `file`
- /// - `hidden`
- /// - `image`
- /// - `month`
- /// - `number`
- /// - `password`
- /// - `radio`
- /// - `range`
- /// - `reset`
- /// - `search`
- /// - `submit`
- /// - `tel`
- /// - `text`
- /// - `time`
- /// - `url`
- /// - `week`
- r#type: InputType "type",
- // value: String,
- value: String volatile,
- initial_value: String DEFAULT,
- };
- /// Build a
- /// [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label)
- /// element.
- label None {
- form: Id DEFAULT,
- r#for: Id "for",
- };
- /// Build a
- /// [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend)
- /// element.
- legend None {};
- /// Build a
- /// [`<meter>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter)
- /// element.
- meter None {
- value: isize DEFAULT,
- min: isize DEFAULT,
- max: isize DEFAULT,
- low: isize DEFAULT,
- high: isize DEFAULT,
- optimum: isize DEFAULT,
- form: Id DEFAULT,
- };
- /// Build a
- /// [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup)
- /// element.
- optgroup None {
- disabled: Bool DEFAULT,
- label: String DEFAULT,
- };
- /// Build a
- /// [`<option>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
- /// element.
- option None {
- disabled: Bool DEFAULT,
- label: String DEFAULT,
- value: String DEFAULT,
- selected: Bool volatile,
- initial_selected: Bool DEFAULT,
- };
- /// Build a
- /// [`<output>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output)
- /// element.
- output None {
- form: Id DEFAULT,
- name: Id DEFAULT,
- // r#for: SpacedSet<Id>,
- };
- /// Build a
- /// [`<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress)
- /// element.
- progress None {
- max: f64 DEFAULT,
- value: f64 DEFAULT,
- };
- /// Build a
- /// [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select)
- /// element.
- select None {
- // defined below
- // value: String,
- autocomplete: String DEFAULT,
- autofocus: Bool DEFAULT,
- disabled: Bool DEFAULT,
- form: Id DEFAULT,
- multiple: Bool DEFAULT,
- name: Id DEFAULT,
- required: Bool DEFAULT,
- size: usize DEFAULT,
- value: String volatile,
- };
- /// Build a
- /// [`<textarea>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
- /// element.
- textarea None {
- autocomplete: OnOff DEFAULT,
- autofocus: Bool DEFAULT,
- cols: usize DEFAULT,
- disabled: Bool DEFAULT,
- form: Id DEFAULT,
- maxlength: usize DEFAULT,
- minlength: usize DEFAULT,
- name: Id DEFAULT,
- placeholder: String DEFAULT,
- readonly: Bool DEFAULT,
- required: Bool DEFAULT,
- rows: usize DEFAULT,
- spellcheck: BoolOrDefault DEFAULT,
- wrap: Wrap DEFAULT,
- value: String volatile,
- initial_value: String DEFAULT,
- };
- // Interactive elements
- /// Build a
- /// [`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)
- /// element.
- details None {
- open: Bool DEFAULT,
- };
- /// Build dialog
- /// [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog)
- /// element.
- dialog None {
- open: Bool DEFAULT,
- };
- /// Build a
- /// [`<summary>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary)
- /// element.
- summary None {};
- // Web components
- /// Build a
- /// [`<slot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot)
- /// element.
- slot None {};
- /// Build a
- /// [`<template>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)
- /// element.
- template None {};
- // SVG components
- /// Build a
- /// [`<svg>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg)
- /// element.
- svg "http://www.w3.org/2000/svg" { };
- // /// Build a
- // /// [`<a>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a)
- // /// element.
- // a "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<animate>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate)
- /// element.
- animate "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<animateMotion>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateMotion)
- /// element.
- animateMotion "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<animateTransform>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateTransform)
- /// element.
- animateTransform "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<circle>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle)
- /// element.
- circle "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<clipPath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)
- /// element.
- clipPath "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<defs>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs)
- /// element.
- defs "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<desc>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc)
- /// element.
- desc "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<discard>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/discard)
- /// element.
- discard "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<ellipse>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse)
- /// element.
- ellipse "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feBlend>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feBlend)
- /// element.
- feBlend "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feColorMatrix>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix)
- /// element.
- feColorMatrix "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feComponentTransfer>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComponentTransfer)
- /// element.
- feComponentTransfer "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feComposite>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComposite)
- /// element.
- feComposite "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feConvolveMatrix>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix)
- /// element.
- feConvolveMatrix "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feDiffuseLighting>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDiffuseLighting)
- /// element.
- feDiffuseLighting "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feDisplacementMap>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDisplacementMap)
- /// element.
- feDisplacementMap "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feDistantLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDistantLight)
- /// element.
- feDistantLight "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feDropShadow>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDropShadow)
- /// element.
- feDropShadow "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feFlood>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFlood)
- /// element.
- feFlood "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feFuncA>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncA)
- /// element.
- feFuncA "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feFuncB>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncB)
- /// element.
- feFuncB "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feFuncG>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncG)
- /// element.
- feFuncG "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feFuncR>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncR)
- /// element.
- feFuncR "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feGaussianBlur>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur)
- /// element.
- feGaussianBlur "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feImage>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feImage)
- /// element.
- feImage "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feMerge>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMerge)
- /// element.
- feMerge "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feMergeNode>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMergeNode)
- /// element.
- feMergeNode "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feMorphology>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology)
- /// element.
- feMorphology "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feOffset>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feOffset)
- /// element.
- feOffset "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<fePointLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/fePointLight)
- /// element.
- fePointLight "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feSpecularLighting>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpecularLighting)
- /// element.
- feSpecularLighting "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feSpotLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpotLight)
- /// element.
- feSpotLight "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feTile>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTile)
- /// element.
- feTile "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<feTurbulence>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTurbulence)
- /// element.
- feTurbulence "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<filter>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter)
- /// element.
- filter "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<foreignObject>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject)
- /// element.
- foreignObject "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<g>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g)
- /// element.
- g "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<hatch>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatch)
- /// element.
- hatch "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<hatchpath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatchpath)
- /// element.
- hatchpath "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<image>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image)
- /// element.
- image "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<line>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line)
- /// element.
- line "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<linearGradient>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient)
- /// element.
- linearGradient "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<marker>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker)
- /// element.
- marker "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<mask>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask)
- /// element.
- mask "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<metadata>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/metadata)
- /// element.
- metadata "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<mpath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mpath)
- /// element.
- mpath "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<path>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path)
- /// element.
- path "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<pattern>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/pattern)
- /// element.
- pattern "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<polygon>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon)
- /// element.
- polygon "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<polyline>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polyline)
- /// element.
- polyline "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<radialGradient>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/radialGradient)
- /// element.
- radialGradient "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<rect>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect)
- /// element.
- rect "http://www.w3.org/2000/svg" {};
- // /// Build a
- // /// [`<script>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script)
- // /// element.
- // script "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<set>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/set)
- /// element.
- set "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<stop>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop)
- /// element.
- stop "http://www.w3.org/2000/svg" {};
- // /// Build a
- // /// [`<style>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style)
- // /// element.
- // style "http://www.w3.org/2000/svg" {};
- // /// Build a
- // /// [`<svg>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg)
- // /// element.
- // svg "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<switch>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/switch)
- /// element.
- switch "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<symbol>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol)
- /// element.
- symbol "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<text>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text)
- /// element.
- text "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<textPath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath)
- /// element.
- textPath "http://www.w3.org/2000/svg" {};
- // /// Build a
- // /// [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title)
- // /// element.
- // title "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<tspan>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tspan)
- /// element.
- tspan "http://www.w3.org/2000/svg" {};
- /// Build a
- /// [`<view>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/view)
- /// element.
- view "http://www.w3.org/2000/svg" {};
- // /// Build a
- // /// [`<use>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use)
- // /// element.
- r#use ["use", "http://www.w3.org/2000/svg"] {
- href: String DEFAULT,
- };
- // MathML elements
- /// Build a
- /// [`<annotation>`](https://w3c.github.io/mathml-core/#dfn-annotation)
- /// element.
- annotation "http://www.w3.org/1998/Math/MathML" {
- encoding: String DEFAULT,
- };
- /// Build a
- /// [`<annotation-xml>`](https://w3c.github.io/mathml-core/#dfn-annotation-xml)
- /// element.
- annotationXml ["annotation-xml", "http://www.w3.org/1998/Math/MathML"] {
- encoding: String DEFAULT,
- };
- /// Build a
- /// [`<merror>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/merror)
- /// element.
- merror "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<math>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/math)
- /// element.
- math "http://www.w3.org/1998/Math/MathML" {
- display: String DEFAULT,
- };
- /// Build a
- /// [`<mfrac>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfrac)
- /// element.
- mfrac "http://www.w3.org/1998/Math/MathML" {
- linethickness: usize DEFAULT,
- };
- /// Build a
- /// [`<mi>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mi)
- /// element.
- mi "http://www.w3.org/1998/Math/MathML" {
- mathvariant: String DEFAULT,
- };
- /// Build a
- /// [`<mmultiscripts>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mmultiscripts)
- /// element.
- mmultiscripts "http://www.w3.org/1998/math/mathml" {};
- /// Build a
- /// [`<mn>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mn)
- /// element.
- mn "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mo>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo)
- /// element.
- mo "http://www.w3.org/1998/Math/MathML" {
- fence: Bool DEFAULT,
- largeop: Bool DEFAULT,
- lspace: usize DEFAULT,
- maxsize: usize DEFAULT,
- minsize: usize DEFAULT,
- movablelimits: Bool DEFAULT,
- rspace: usize DEFAULT,
- separator: Bool DEFAULT,
- stretchy: Bool DEFAULT,
- symmetric: Bool DEFAULT,
- };
- /// Build a
- /// [`<mover>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mover)
- /// element.
- mover "http://www.w3.org/1998/Math/MathML" {
- accent: Bool DEFAULT,
- };
- /// Build a
- /// [`<mpadded>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mpadded)
- /// element.
- mpadded "http://www.w3.org/1998/Math/MathML" {
- depth: usize DEFAULT,
- height: usize DEFAULT,
- lspace: usize DEFAULT,
- voffset: usize DEFAULT,
- width: usize DEFAULT,
- };
- /// Build a
- /// [`<mphantom>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mphantom)
- /// element.
- mphantom "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mprescripts>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mprescripts)
- /// element.
- mprescripts "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mroot>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mroot)
- /// element.
- mroot "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mrow>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mrow)
- /// element.
- mrow "http://www.w3.org/1998/Math/MathML" {
- };
- /// Build a
- /// [`<ms>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ms)
- /// element.
- ms "http://www.w3.org/1998/Math/MathML" {
- lquote: String DEFAULT,
- rquote: String DEFAULT,
- };
- /// Build a
- /// [`<mspace>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mspace)
- /// element.
- mspace "http://www.w3.org/1998/Math/MathML" {
- depth: usize DEFAULT,
- height: usize DEFAULT,
- width: usize DEFAULT,
- };
- /// Build a
- /// [`<msqrt>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msqrt)
- /// element.
- msqrt "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mstyle>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle)
- /// element.
- mstyle "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<msub>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msub)
- /// element.
- msub "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<msubsup>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup)
- /// element.
- msubsup "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<msup>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msup)
- /// element.
- msup "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mtable>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable)
- /// element.
- mtable "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mtd>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd)
- /// element.
- mtd "http://www.w3.org/1998/Math/MathML" {
- columnspan: usize DEFAULT,
- rowspan: usize DEFAULT,
- };
- /// Build a
- /// [`<mtext>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtext)
- /// element.
- mtext "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<mtr>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtr)
- /// element.
- mtr "http://www.w3.org/1998/Math/MathML" {};
- /// Build a
- /// [`<munder>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/munder)
- /// element.
- munder "http://www.w3.org/1998/Math/MathML" {
- accentunder: Bool DEFAULT,
- };
- /// Build a
- /// [`<munderover>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/munderover)
- /// element.
- munderover "http://www.w3.org/1998/Math/MathML" {
- accent: Bool DEFAULT,
- accentunder: Bool DEFAULT,
- };
- /// Build a
- /// [`<semantics>`](https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics)
- /// element.
- semantics "http://www.w3.org/1998/Math/MathML" {
- encoding: String DEFAULT,
- };
- }
|