|
@@ -1,61 +1,258 @@
|
|
#![allow(non_upper_case_globals)]
|
|
#![allow(non_upper_case_globals)]
|
|
-
|
|
|
|
|
|
+#[cfg(feature = "hot-reload-context")]
|
|
|
|
+use crate::{map_global_attributes, map_svg_attributes};
|
|
use crate::{GlobalAttributes, SvgAttributes};
|
|
use crate::{GlobalAttributes, SvgAttributes};
|
|
|
|
+#[cfg(feature = "hot-reload-context")]
|
|
|
|
+use dioxus_rsx::HotReloadingContext;
|
|
|
|
|
|
pub type AttributeDiscription = (&'static str, Option<&'static str>, bool);
|
|
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:ident),
|
|
|
|
+ ) => {
|
|
|
|
+ pub const $fil: AttributeDiscription = (stringify!($fil), Some(stringify!($ns)), false)
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ (
|
|
|
|
+ $(#[$attr_method:meta])*
|
|
|
|
+ $fil:ident: $vil:ident (in $ns:ident : volatile),
|
|
|
|
+ ) => {
|
|
|
|
+ pub const $fil: AttributeDiscription = (stringify!($fil), Some(stringify!($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:ident),
|
|
|
|
+ ) => {
|
|
|
|
+ if $attr == stringify!($fil) {
|
|
|
|
+ return Some((stringify!(fil), Some(stringify!(ns))));
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+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:tt {
|
|
|
|
+ $(
|
|
|
|
+ $(#[$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 in $namespace $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:tt {
|
|
|
|
+ $(
|
|
|
|
+ $fil:ident: $vil:ident $extra:tt,
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ ) => {
|
|
|
|
+ if $el == stringify!($name) {
|
|
|
|
+ return Some((stringify!($name), Some(stringify!($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),
|
|
|
|
+ );
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ (
|
|
|
|
+ $el:ident $attr:ident $name:ident $namespace:tt {
|
|
|
|
+ $(
|
|
|
|
+ $fil:ident: $vil:ident $extra:tt,
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ ) => {
|
|
|
|
+ if $el == stringify!($name) {
|
|
|
|
+ $(
|
|
|
|
+ impl_attribute_match!(
|
|
|
|
+ $attr $fil: $vil in $namespace $extra
|
|
|
|
+ );
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
macro_rules! builder_constructors {
|
|
macro_rules! builder_constructors {
|
|
(
|
|
(
|
|
$(
|
|
$(
|
|
$(#[$attr:meta])*
|
|
$(#[$attr:meta])*
|
|
- $name:ident {
|
|
|
|
|
|
+ $name:ident $namespace:tt {
|
|
$(
|
|
$(
|
|
$(#[$attr_method:meta])*
|
|
$(#[$attr_method:meta])*
|
|
- $fil:ident: $vil:ident,
|
|
|
|
|
|
+ $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;
|
|
|
|
|
|
+ ) => {
|
|
|
|
+ #[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>)> {
|
|
$(
|
|
$(
|
|
- pub const $fil: AttributeDiscription = (stringify!($fil), None, false);
|
|
|
|
|
|
+ impl_element_match_attributes!(
|
|
|
|
+ element attribute $name $namespace {
|
|
|
|
+ $(
|
|
|
|
+ $fil: $vil $extra,
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ );
|
|
)*
|
|
)*
|
|
|
|
+ map_global_attributes(attribute).or_else(|| map_svg_attributes(attribute))
|
|
}
|
|
}
|
|
|
|
|
|
- impl GlobalAttributes for $name {}
|
|
|
|
- )*
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- ( $(
|
|
|
|
- $(#[$attr:meta])*
|
|
|
|
- $name:ident <> $namespace:tt {
|
|
|
|
- $($fil:ident: $vil:ident,)*
|
|
|
|
- };
|
|
|
|
- )* ) => {
|
|
|
|
- $(
|
|
|
|
- #[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);
|
|
|
|
-
|
|
|
|
|
|
+ fn map_element(element: &str) -> Option<(&'static str, Option<&'static str>)> {
|
|
$(
|
|
$(
|
|
- pub const $fil: AttributeDiscription = (stringify!($fil), Some(stringify!($namespace)), false)
|
|
|
|
|
|
+ impl_element_match!(
|
|
|
|
+ element $name $namespace {
|
|
|
|
+ $(
|
|
|
|
+ $fil: $vil $extra,
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ );
|
|
)*
|
|
)*
|
|
|
|
+ None
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $(
|
|
|
|
+ impl_element!(
|
|
|
|
+ $(#[$attr])*
|
|
|
|
+ $name $namespace {
|
|
|
|
+ $(
|
|
|
|
+ $(#[$attr_method])*
|
|
|
|
+ $fil: $vil $extra,
|
|
|
|
+ )*
|
|
|
|
+ }
|
|
|
|
+ );
|
|
)*
|
|
)*
|
|
};
|
|
};
|
|
}
|
|
}
|
|
@@ -75,63 +272,63 @@ builder_constructors! {
|
|
/// [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base)
|
|
/// [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base)
|
|
/// element.
|
|
/// element.
|
|
///
|
|
///
|
|
- base {
|
|
|
|
- href: Uri,
|
|
|
|
- target: Target,
|
|
|
|
|
|
+ base None {
|
|
|
|
+ href: Uri DEFAULT,
|
|
|
|
+ target: Target DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)
|
|
/// [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)
|
|
/// element.
|
|
/// element.
|
|
- head {};
|
|
|
|
|
|
+ head None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)
|
|
/// [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)
|
|
/// element.
|
|
/// element.
|
|
- link {
|
|
|
|
|
|
+ link None {
|
|
// as: Mime,
|
|
// as: Mime,
|
|
- crossorigin: CrossOrigin,
|
|
|
|
- href: Uri,
|
|
|
|
- hreflang: LanguageTag,
|
|
|
|
- media: String, // FIXME media query
|
|
|
|
- rel: LinkType,
|
|
|
|
- sizes: String, // FIXME
|
|
|
|
- title: String, // FIXME
|
|
|
|
- r#type: Mime,
|
|
|
|
- integrity: String,
|
|
|
|
|
|
+ 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 DEFAULT,
|
|
|
|
+ integrity: String DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta)
|
|
/// [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta)
|
|
/// element.
|
|
/// element.
|
|
- meta {
|
|
|
|
- charset: String, // FIXME IANA standard names
|
|
|
|
- content: String,
|
|
|
|
- http_equiv: HTTPEquiv,
|
|
|
|
- name: Metadata,
|
|
|
|
|
|
+ meta None {
|
|
|
|
+ charset: String DEFAULT, // FIXME IANA standard names
|
|
|
|
+ content: String DEFAULT,
|
|
|
|
+ http_equiv: HTTPEquiv DEFAULT,
|
|
|
|
+ name: Metadata DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<style>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style)
|
|
/// [`<style>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style)
|
|
/// element.
|
|
/// element.
|
|
- style {
|
|
|
|
- r#type: Mime,
|
|
|
|
- media: String, // FIXME media query
|
|
|
|
- nonce: Nonce,
|
|
|
|
- title: String, // FIXME
|
|
|
|
|
|
+ style None {
|
|
|
|
+ r#type: Mime DEFAULT,
|
|
|
|
+ media: String DEFAULT, // FIXME media query
|
|
|
|
+ nonce: Nonce DEFAULT,
|
|
|
|
+ title: String DEFAULT, // FIXME
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title)
|
|
/// [`<title>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title)
|
|
/// element.
|
|
/// element.
|
|
- title { };
|
|
|
|
|
|
+ title None { };
|
|
|
|
|
|
// Sectioning root
|
|
// Sectioning root
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<body>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body)
|
|
/// [`<body>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body)
|
|
/// element.
|
|
/// element.
|
|
- body {};
|
|
|
|
|
|
+ body None {};
|
|
|
|
|
|
// ------------------
|
|
// ------------------
|
|
// Content sectioning
|
|
// Content sectioning
|
|
@@ -140,27 +337,27 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<address>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address)
|
|
/// [`<address>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address)
|
|
/// element.
|
|
/// element.
|
|
- address {};
|
|
|
|
|
|
+ address None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<article>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article)
|
|
/// [`<article>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article)
|
|
/// element.
|
|
/// element.
|
|
- article {};
|
|
|
|
|
|
+ article None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<aside>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside)
|
|
/// [`<aside>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside)
|
|
/// element.
|
|
/// element.
|
|
- aside {};
|
|
|
|
|
|
+ aside None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<footer>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer)
|
|
/// [`<footer>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer)
|
|
/// element.
|
|
/// element.
|
|
- footer {};
|
|
|
|
|
|
+ footer None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<header>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header)
|
|
/// [`<header>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header)
|
|
/// element.
|
|
/// element.
|
|
- header {};
|
|
|
|
|
|
+ header None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<h1>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1)
|
|
/// [`<h1>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1)
|
|
@@ -180,7 +377,7 @@ builder_constructors! {
|
|
/// rsx!(h1 { "A header element" })
|
|
/// rsx!(h1 { "A header element" })
|
|
/// LazyNodes::new(|f| f.el(h1).children([f.text("A header element")]).finish())
|
|
/// LazyNodes::new(|f| f.el(h1).children([f.text("A header element")]).finish())
|
|
/// ```
|
|
/// ```
|
|
- h1 {};
|
|
|
|
|
|
+ h1 None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<h2>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2)
|
|
/// [`<h2>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2)
|
|
@@ -199,7 +396,7 @@ builder_constructors! {
|
|
/// rsx!(h2 { "A header element" })
|
|
/// rsx!(h2 { "A header element" })
|
|
/// LazyNodes::new(|f| f.el(h2).children([f.text("A header element")]).finish())
|
|
/// LazyNodes::new(|f| f.el(h2).children([f.text("A header element")]).finish())
|
|
/// ```
|
|
/// ```
|
|
- h2 {};
|
|
|
|
|
|
+ h2 None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<h3>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3)
|
|
/// [`<h3>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3)
|
|
@@ -211,50 +408,50 @@ builder_constructors! {
|
|
/// - The most important heading is <h1> and the least important heading is <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 the first heading in the document.
|
|
/// - The <h1> heading is usually a large bolded font.
|
|
/// - The <h1> heading is usually a large bolded font.
|
|
- h3 {};
|
|
|
|
|
|
+ h3 None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<h4>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4)
|
|
/// [`<h4>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4)
|
|
/// element.
|
|
/// element.
|
|
- h4 {};
|
|
|
|
|
|
+ h4 None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<h5>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5)
|
|
/// [`<h5>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5)
|
|
/// element.
|
|
/// element.
|
|
- h5 {};
|
|
|
|
|
|
+ h5 None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<h6>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6)
|
|
/// [`<h6>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6)
|
|
/// element.
|
|
/// element.
|
|
- h6 {};
|
|
|
|
|
|
+ h6 None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<main>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main)
|
|
/// [`<main>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main)
|
|
/// element.
|
|
/// element.
|
|
- main {};
|
|
|
|
|
|
+ main None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<nav>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav)
|
|
/// [`<nav>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav)
|
|
/// element.
|
|
/// element.
|
|
- nav {};
|
|
|
|
|
|
+ nav None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<section>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section)
|
|
/// [`<section>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section)
|
|
/// element.
|
|
/// element.
|
|
- section {};
|
|
|
|
|
|
+ section None {};
|
|
|
|
|
|
// Text content
|
|
// Text content
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<blockquote>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote)
|
|
/// [`<blockquote>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote)
|
|
/// element.
|
|
/// element.
|
|
- blockquote {
|
|
|
|
- cite: Uri,
|
|
|
|
|
|
+ blockquote None {
|
|
|
|
+ cite: Uri DEFAULT,
|
|
};
|
|
};
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<dd>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd)
|
|
/// [`<dd>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd)
|
|
/// element.
|
|
/// element.
|
|
- dd {};
|
|
|
|
|
|
+ dd None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<div>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div)
|
|
/// [`<div>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div)
|
|
@@ -280,63 +477,63 @@ builder_constructors! {
|
|
/// ## References:
|
|
/// ## References:
|
|
/// - <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div>
|
|
/// - <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div>
|
|
/// - <https://www.w3schools.com/tags/tag_div.asp>
|
|
/// - <https://www.w3schools.com/tags/tag_div.asp>
|
|
- div {};
|
|
|
|
|
|
+ div None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<dl>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl)
|
|
/// [`<dl>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl)
|
|
/// element.
|
|
/// element.
|
|
- dl {};
|
|
|
|
|
|
+ dl None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<dt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt)
|
|
/// [`<dt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt)
|
|
/// element.
|
|
/// element.
|
|
- dt {};
|
|
|
|
|
|
+ dt None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<figcaption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption)
|
|
/// [`<figcaption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption)
|
|
/// element.
|
|
/// element.
|
|
- figcaption {};
|
|
|
|
|
|
+ figcaption None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<figure>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure)
|
|
/// [`<figure>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure)
|
|
/// element.
|
|
/// element.
|
|
- figure {};
|
|
|
|
|
|
+ figure None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<hr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr)
|
|
/// [`<hr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr)
|
|
/// element.
|
|
/// element.
|
|
- hr {};
|
|
|
|
|
|
+ hr None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li)
|
|
/// [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li)
|
|
/// element.
|
|
/// element.
|
|
- li {
|
|
|
|
- value: isize,
|
|
|
|
|
|
+ li None {
|
|
|
|
+ value: isize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol)
|
|
/// [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol)
|
|
/// element.
|
|
/// element.
|
|
- ol {
|
|
|
|
- reversed: Bool,
|
|
|
|
- start: isize,
|
|
|
|
- r#type: OrderedListType,
|
|
|
|
|
|
+ ol None {
|
|
|
|
+ reversed: Bool DEFAULT,
|
|
|
|
+ start: isize DEFAULT,
|
|
|
|
+ r#type: OrderedListType DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<p>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)
|
|
/// [`<p>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)
|
|
/// element.
|
|
/// element.
|
|
- p {};
|
|
|
|
|
|
+ p None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<pre>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre)
|
|
/// [`<pre>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre)
|
|
/// element.
|
|
/// element.
|
|
- pre {};
|
|
|
|
|
|
+ pre None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul)
|
|
/// [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul)
|
|
/// element.
|
|
/// element.
|
|
- ul {};
|
|
|
|
|
|
+ ul None {};
|
|
|
|
|
|
|
|
|
|
// Inline text semantics
|
|
// Inline text semantics
|
|
@@ -344,173 +541,173 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
|
|
/// [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)
|
|
/// element.
|
|
/// element.
|
|
- a {
|
|
|
|
- download: String,
|
|
|
|
- href: Uri,
|
|
|
|
- hreflang: LanguageTag,
|
|
|
|
- target: Target,
|
|
|
|
- r#type: Mime,
|
|
|
|
|
|
+ a None {
|
|
|
|
+ download: String DEFAULT,
|
|
|
|
+ href: Uri DEFAULT,
|
|
|
|
+ hreflang: LanguageTag DEFAULT,
|
|
|
|
+ target: Target DEFAULT,
|
|
|
|
+ r#type: Mime DEFAULT,
|
|
// ping: SpacedList<Uri>,
|
|
// ping: SpacedList<Uri>,
|
|
// rel: SpacedList<LinkType>,
|
|
// rel: SpacedList<LinkType>,
|
|
- ping: SpacedList,
|
|
|
|
- rel: SpacedList,
|
|
|
|
|
|
+ ping: SpacedList DEFAULT,
|
|
|
|
+ rel: SpacedList DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<abbr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr)
|
|
/// [`<abbr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr)
|
|
/// element.
|
|
/// element.
|
|
- abbr {};
|
|
|
|
|
|
+ abbr None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<b>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b)
|
|
/// [`<b>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b)
|
|
/// element.
|
|
/// element.
|
|
- b {};
|
|
|
|
|
|
+ b None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<bdi>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi)
|
|
/// [`<bdi>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi)
|
|
/// element.
|
|
/// element.
|
|
- bdi {};
|
|
|
|
|
|
+ bdi None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<bdo>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo)
|
|
/// [`<bdo>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo)
|
|
/// element.
|
|
/// element.
|
|
- bdo {};
|
|
|
|
|
|
+ bdo None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<br>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br)
|
|
/// [`<br>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br)
|
|
/// element.
|
|
/// element.
|
|
- br {};
|
|
|
|
|
|
+ br None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<cite>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite)
|
|
/// [`<cite>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite)
|
|
/// element.
|
|
/// element.
|
|
- cite {};
|
|
|
|
|
|
+ cite None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<code>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code)
|
|
/// [`<code>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code)
|
|
/// element.
|
|
/// element.
|
|
- code {
|
|
|
|
- language: String,
|
|
|
|
|
|
+ code None {
|
|
|
|
+ language: String DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<data>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data)
|
|
/// [`<data>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data)
|
|
/// element.
|
|
/// element.
|
|
- data {
|
|
|
|
- value: String,
|
|
|
|
|
|
+ data None {
|
|
|
|
+ value: String DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<dfn>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn)
|
|
/// [`<dfn>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn)
|
|
/// element.
|
|
/// element.
|
|
- dfn {};
|
|
|
|
|
|
+ dfn None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<em>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em)
|
|
/// [`<em>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em)
|
|
/// element.
|
|
/// element.
|
|
- em {};
|
|
|
|
|
|
+ em None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<i>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i)
|
|
/// [`<i>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i)
|
|
/// element.
|
|
/// element.
|
|
- i {};
|
|
|
|
|
|
+ i None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<kbd>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd)
|
|
/// [`<kbd>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd)
|
|
/// element.
|
|
/// element.
|
|
- kbd {};
|
|
|
|
|
|
+ kbd None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<mark>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark)
|
|
/// [`<mark>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark)
|
|
/// element.
|
|
/// element.
|
|
- mark {};
|
|
|
|
|
|
+ mark None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu)
|
|
/// [`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu)
|
|
/// element.
|
|
/// element.
|
|
- menu {};
|
|
|
|
|
|
+ menu None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<q>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q)
|
|
/// [`<q>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q)
|
|
/// element.
|
|
/// element.
|
|
- q {
|
|
|
|
- cite: Uri,
|
|
|
|
|
|
+ q None {
|
|
|
|
+ cite: Uri DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<rp>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp)
|
|
/// [`<rp>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp)
|
|
/// element.
|
|
/// element.
|
|
- rp {};
|
|
|
|
|
|
+ rp None {};
|
|
|
|
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<rt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt)
|
|
/// [`<rt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt)
|
|
/// element.
|
|
/// element.
|
|
- rt {};
|
|
|
|
|
|
+ rt None {};
|
|
|
|
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<ruby>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby)
|
|
/// [`<ruby>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby)
|
|
/// element.
|
|
/// element.
|
|
- ruby {};
|
|
|
|
|
|
+ ruby None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<s>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s)
|
|
/// [`<s>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s)
|
|
/// element.
|
|
/// element.
|
|
- s {};
|
|
|
|
|
|
+ s None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<samp>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp)
|
|
/// [`<samp>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp)
|
|
/// element.
|
|
/// element.
|
|
- samp {};
|
|
|
|
|
|
+ samp None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<small>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small)
|
|
/// [`<small>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small)
|
|
/// element.
|
|
/// element.
|
|
- small {};
|
|
|
|
|
|
+ small None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<span>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span)
|
|
/// [`<span>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span)
|
|
/// element.
|
|
/// element.
|
|
- span {};
|
|
|
|
|
|
+ span None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<strong>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong)
|
|
/// [`<strong>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong)
|
|
/// element.
|
|
/// element.
|
|
- strong {};
|
|
|
|
|
|
+ strong None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<sub>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub)
|
|
/// [`<sub>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub)
|
|
/// element.
|
|
/// element.
|
|
- sub {};
|
|
|
|
|
|
+ sub None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<sup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup)
|
|
/// [`<sup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup)
|
|
/// element.
|
|
/// element.
|
|
- sup {};
|
|
|
|
|
|
+ sup None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<time>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time)
|
|
/// [`<time>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time)
|
|
/// element.
|
|
/// element.
|
|
- time {
|
|
|
|
- datetime: Datetime,
|
|
|
|
|
|
+ time None {
|
|
|
|
+ datetime: Datetime DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<u>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u)
|
|
/// [`<u>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u)
|
|
/// element.
|
|
/// element.
|
|
- u {};
|
|
|
|
|
|
+ u None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<var>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var)
|
|
/// [`<var>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var)
|
|
/// element.
|
|
/// element.
|
|
- var {};
|
|
|
|
|
|
+ var None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<wbr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr)
|
|
/// [`<wbr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr)
|
|
/// element.
|
|
/// element.
|
|
- wbr {};
|
|
|
|
|
|
+ wbr None {};
|
|
|
|
|
|
|
|
|
|
// Image and multimedia
|
|
// Image and multimedia
|
|
@@ -518,14 +715,14 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<area>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area)
|
|
/// [`<area>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area)
|
|
/// element.
|
|
/// element.
|
|
- area {
|
|
|
|
- alt: String,
|
|
|
|
- coords: String, // TODO could perhaps be validated
|
|
|
|
- download: Bool,
|
|
|
|
- href: Uri,
|
|
|
|
- hreflang: LanguageTag,
|
|
|
|
- shape: AreaShape,
|
|
|
|
- target: Target,
|
|
|
|
|
|
+ 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>,
|
|
// ping: SpacedList<Uri>,
|
|
// rel: SpacedSet<LinkType>,
|
|
// rel: SpacedSet<LinkType>,
|
|
};
|
|
};
|
|
@@ -533,66 +730,66 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio)
|
|
/// [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio)
|
|
/// element.
|
|
/// element.
|
|
- audio {
|
|
|
|
- autoplay: Bool,
|
|
|
|
- controls: Bool,
|
|
|
|
- crossorigin: CrossOrigin,
|
|
|
|
- muted: Bool,
|
|
|
|
- preload: Preload,
|
|
|
|
- src: Uri,
|
|
|
|
- r#loop: Bool,
|
|
|
|
|
|
+ audio None {
|
|
|
|
+ autoplay: Bool DEFAULT,
|
|
|
|
+ controls: Bool DEFAULT,
|
|
|
|
+ crossorigin: CrossOrigin DEFAULT,
|
|
|
|
+ muted: Bool DEFAULT,
|
|
|
|
+ preload: Preload DEFAULT,
|
|
|
|
+ src: Uri DEFAULT,
|
|
|
|
+ r#loop: Bool DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<img>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)
|
|
/// [`<img>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)
|
|
/// element.
|
|
/// element.
|
|
- img {
|
|
|
|
- alt: String,
|
|
|
|
- crossorigin: CrossOrigin,
|
|
|
|
- decoding: ImageDecoding,
|
|
|
|
- height: usize,
|
|
|
|
- ismap: Bool,
|
|
|
|
- src: Uri,
|
|
|
|
- srcset: String, // FIXME this is much more complicated
|
|
|
|
- usemap: String, // FIXME should be a fragment starting with '#'
|
|
|
|
- width: usize,
|
|
|
|
- referrerpolicy: String,
|
|
|
|
|
|
+ img None {
|
|
|
|
+ alt: String DEFAULT,
|
|
|
|
+ crossorigin: CrossOrigin DEFAULT,
|
|
|
|
+ decoding: ImageDecoding DEFAULT,
|
|
|
|
+ height: usize DEFAULT,
|
|
|
|
+ ismap: Bool 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
|
|
// sizes: SpacedList<String>, // FIXME it's not really just a string
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map)
|
|
/// [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map)
|
|
/// element.
|
|
/// element.
|
|
- map {
|
|
|
|
- name: Id,
|
|
|
|
|
|
+ map None {
|
|
|
|
+ name: Id DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<track>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track)
|
|
/// [`<track>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track)
|
|
/// element.
|
|
/// element.
|
|
- track {
|
|
|
|
- default: Bool,
|
|
|
|
- kind: VideoKind,
|
|
|
|
- label: String,
|
|
|
|
- src: Uri,
|
|
|
|
- srclang: LanguageTag,
|
|
|
|
|
|
+ track None {
|
|
|
|
+ default: Bool DEFAULT,
|
|
|
|
+ kind: VideoKind DEFAULT,
|
|
|
|
+ label: String DEFAULT,
|
|
|
|
+ src: Uri DEFAULT,
|
|
|
|
+ srclang: LanguageTag DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video)
|
|
/// [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video)
|
|
/// element.
|
|
/// element.
|
|
- video {
|
|
|
|
- autoplay: Bool,
|
|
|
|
- controls: Bool,
|
|
|
|
- crossorigin: CrossOrigin,
|
|
|
|
- height: usize,
|
|
|
|
- r#loop: Bool,
|
|
|
|
- muted: Bool,
|
|
|
|
- preload: Preload,
|
|
|
|
- playsinline: Bool,
|
|
|
|
- poster: Uri,
|
|
|
|
- src: Uri,
|
|
|
|
- width: usize,
|
|
|
|
|
|
+ video None {
|
|
|
|
+ autoplay: Bool DEFAULT,
|
|
|
|
+ controls: Bool DEFAULT,
|
|
|
|
+ crossorigin: CrossOrigin DEFAULT,
|
|
|
|
+ height: usize DEFAULT,
|
|
|
|
+ r#loop: Bool DEFAULT,
|
|
|
|
+ muted: Bool DEFAULT,
|
|
|
|
+ preload: Preload DEFAULT,
|
|
|
|
+ playsinline: Bool DEFAULT,
|
|
|
|
+ poster: Uri DEFAULT,
|
|
|
|
+ src: Uri DEFAULT,
|
|
|
|
+ width: usize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -601,70 +798,70 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<embed>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed)
|
|
/// [`<embed>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed)
|
|
/// element.
|
|
/// element.
|
|
- embed {
|
|
|
|
- height: usize,
|
|
|
|
- src: Uri,
|
|
|
|
- r#type: Mime,
|
|
|
|
- width: usize,
|
|
|
|
|
|
+ embed None {
|
|
|
|
+ height: usize DEFAULT,
|
|
|
|
+ src: Uri DEFAULT,
|
|
|
|
+ r#type: Mime DEFAULT,
|
|
|
|
+ width: usize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)
|
|
/// [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)
|
|
/// element.
|
|
/// element.
|
|
- iframe {
|
|
|
|
- allow: FeaturePolicy,
|
|
|
|
- allowfullscreen: Bool,
|
|
|
|
- allowpaymentrequest: Bool,
|
|
|
|
- height: usize,
|
|
|
|
- name: Id,
|
|
|
|
- referrerpolicy: ReferrerPolicy,
|
|
|
|
- src: Uri,
|
|
|
|
- srcdoc: Uri,
|
|
|
|
- width: usize,
|
|
|
|
-
|
|
|
|
- marginWidth: String,
|
|
|
|
- align: String,
|
|
|
|
- longdesc: String,
|
|
|
|
-
|
|
|
|
- scrolling: String,
|
|
|
|
- marginHeight: String,
|
|
|
|
- frameBorder: String,
|
|
|
|
|
|
+ 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,
|
|
|
|
+
|
|
|
|
+ marginWidth: String DEFAULT,
|
|
|
|
+ align: String DEFAULT,
|
|
|
|
+ longdesc: String DEFAULT,
|
|
|
|
+
|
|
|
|
+ scrolling: String DEFAULT,
|
|
|
|
+ marginHeight: String DEFAULT,
|
|
|
|
+ frameBorder: String DEFAULT,
|
|
// sandbox: SpacedSet<Sandbox>,
|
|
// sandbox: SpacedSet<Sandbox>,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object)
|
|
/// [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object)
|
|
/// element.
|
|
/// element.
|
|
- object {
|
|
|
|
- data: Uri,
|
|
|
|
- form: Id,
|
|
|
|
- height: usize,
|
|
|
|
- name: Id,
|
|
|
|
- r#type: Mime,
|
|
|
|
- typemustmatch: Bool,
|
|
|
|
- usemap: String, // TODO should be a fragment starting with '#'
|
|
|
|
- width: usize,
|
|
|
|
|
|
+ object None {
|
|
|
|
+ data: Uri DEFAULT,
|
|
|
|
+ form: Id DEFAULT,
|
|
|
|
+ height: usize DEFAULT,
|
|
|
|
+ name: Id DEFAULT,
|
|
|
|
+ r#type: Mime DEFAULT,
|
|
|
|
+ typemustmatch: Bool DEFAULT,
|
|
|
|
+ usemap: String DEFAULT, // TODO should be a fragment starting with '#'
|
|
|
|
+ width: usize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<param>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param)
|
|
/// [`<param>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param)
|
|
/// element.
|
|
/// element.
|
|
- param {
|
|
|
|
- name: String,
|
|
|
|
- value: String,
|
|
|
|
|
|
+ param None {
|
|
|
|
+ name: String DEFAULT,
|
|
|
|
+ value: String DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture)
|
|
/// [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture)
|
|
/// element.
|
|
/// element.
|
|
- picture {};
|
|
|
|
|
|
+ picture None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source)
|
|
/// [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source)
|
|
/// element.
|
|
/// element.
|
|
- source {
|
|
|
|
- src: Uri,
|
|
|
|
- r#type: Mime,
|
|
|
|
|
|
+ source None {
|
|
|
|
+ src: Uri DEFAULT,
|
|
|
|
+ r#type: Mime DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -673,15 +870,15 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas)
|
|
/// [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas)
|
|
/// element.
|
|
/// element.
|
|
- canvas {
|
|
|
|
- height: usize,
|
|
|
|
- width: usize,
|
|
|
|
|
|
+ canvas None {
|
|
|
|
+ height: usize DEFAULT,
|
|
|
|
+ width: usize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<noscript>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript)
|
|
/// [`<noscript>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript)
|
|
/// element.
|
|
/// element.
|
|
- noscript {};
|
|
|
|
|
|
+ noscript None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)
|
|
/// [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)
|
|
@@ -690,11 +887,11 @@ builder_constructors! {
|
|
/// The [`script`] HTML element is used to embed executable code or data; this is typically used to embed or refer to
|
|
/// 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
|
|
/// JavaScript code. The [`script`] element can also be used with other languages, such as WebGL's GLSL shader
|
|
/// programming language and JSON.
|
|
/// programming language and JSON.
|
|
- script {
|
|
|
|
|
|
+ script None {
|
|
/// Normal script elements pass minimal information to the window.onerror for scripts which do not pass the
|
|
/// 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
|
|
/// 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.
|
|
/// this attribute. See CORS settings attributes for a more descriptive explanation of its valid arguments.
|
|
- crossorigin: CrossOrigin,
|
|
|
|
|
|
+ crossorigin: CrossOrigin DEFAULT,
|
|
|
|
|
|
/// This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the
|
|
/// 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.
|
|
/// document has been parsed, but before firing DOMContentLoaded.
|
|
@@ -715,13 +912,17 @@ builder_constructors! {
|
|
///
|
|
///
|
|
/// This attribute allows the elimination of parser-blocking JavaScript where the browser would have to load and
|
|
/// 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.
|
|
/// evaluate scripts before continuing to parse. async has a similar effect in this case.
|
|
- defer: Bool,
|
|
|
|
- integrity: Integrity,
|
|
|
|
- nomodule: Bool,
|
|
|
|
- nonce: Nonce,
|
|
|
|
- src: Uri,
|
|
|
|
- text: String,
|
|
|
|
-
|
|
|
|
|
|
+ defer: Bool DEFAULT,
|
|
|
|
+ integrity: Integrity DEFAULT,
|
|
|
|
+ nomodule: Bool DEFAULT,
|
|
|
|
+ nonce: Nonce DEFAULT,
|
|
|
|
+ src: Uri DEFAULT,
|
|
|
|
+ text: String DEFAULT,
|
|
|
|
+
|
|
|
|
+ // r#async: Bool,
|
|
|
|
+ // r#type: String, // TODO could be an enum
|
|
|
|
+ r#type: String "type",
|
|
|
|
+ r#script: String "script",
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -730,17 +931,17 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<del>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del)
|
|
/// [`<del>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del)
|
|
/// element.
|
|
/// element.
|
|
- del {
|
|
|
|
- cite: Uri,
|
|
|
|
- datetime: Datetime,
|
|
|
|
|
|
+ del None {
|
|
|
|
+ cite: Uri DEFAULT,
|
|
|
|
+ datetime: Datetime DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<ins>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins)
|
|
/// [`<ins>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins)
|
|
/// element.
|
|
/// element.
|
|
- ins {
|
|
|
|
- cite: Uri,
|
|
|
|
- datetime: Datetime,
|
|
|
|
|
|
+ ins None {
|
|
|
|
+ cite: Uri DEFAULT,
|
|
|
|
+ datetime: Datetime DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -749,66 +950,66 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption)
|
|
/// [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption)
|
|
/// element.
|
|
/// element.
|
|
- caption {};
|
|
|
|
|
|
+ caption None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col)
|
|
/// [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col)
|
|
/// element.
|
|
/// element.
|
|
- col {
|
|
|
|
- span: usize,
|
|
|
|
|
|
+ col None {
|
|
|
|
+ span: usize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup)
|
|
/// [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup)
|
|
/// element.
|
|
/// element.
|
|
- colgroup {
|
|
|
|
- span: usize,
|
|
|
|
|
|
+ colgroup None {
|
|
|
|
+ span: usize DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table)
|
|
/// [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table)
|
|
/// element.
|
|
/// element.
|
|
- table {};
|
|
|
|
|
|
+ table None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<tbody>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody)
|
|
/// [`<tbody>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody)
|
|
/// element.
|
|
/// element.
|
|
- tbody {};
|
|
|
|
|
|
+ tbody None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td)
|
|
/// [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td)
|
|
/// element.
|
|
/// element.
|
|
- td {
|
|
|
|
- colspan: usize,
|
|
|
|
- rowspan: usize,
|
|
|
|
|
|
+ td None {
|
|
|
|
+ colspan: usize DEFAULT,
|
|
|
|
+ rowspan: usize DEFAULT,
|
|
// headers: SpacedSet<Id>,
|
|
// headers: SpacedSet<Id>,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<tfoot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot)
|
|
/// [`<tfoot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot)
|
|
/// element.
|
|
/// element.
|
|
- tfoot {};
|
|
|
|
|
|
+ tfoot None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th)
|
|
/// [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th)
|
|
/// element.
|
|
/// element.
|
|
- th {
|
|
|
|
- abbr: String,
|
|
|
|
- colspan: usize,
|
|
|
|
- rowspan: usize,
|
|
|
|
- scope: TableHeaderScope,
|
|
|
|
|
|
+ th None {
|
|
|
|
+ abbr: String DEFAULT,
|
|
|
|
+ colspan: usize DEFAULT,
|
|
|
|
+ rowspan: usize DEFAULT,
|
|
|
|
+ scope: TableHeaderScope DEFAULT,
|
|
// headers: SpacedSet<Id>,
|
|
// headers: SpacedSet<Id>,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<thead>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead)
|
|
/// [`<thead>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead)
|
|
/// element.
|
|
/// element.
|
|
- thead {};
|
|
|
|
|
|
+ thead None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<tr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr)
|
|
/// [`<tr>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr)
|
|
/// element.
|
|
/// element.
|
|
- tr {};
|
|
|
|
|
|
+ tr None {};
|
|
|
|
|
|
|
|
|
|
// Forms
|
|
// Forms
|
|
@@ -816,183 +1017,212 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button)
|
|
/// [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button)
|
|
/// element.
|
|
/// element.
|
|
- button {
|
|
|
|
- autofocus: Bool,
|
|
|
|
- disabled: Bool,
|
|
|
|
- form: Id,
|
|
|
|
- formaction: Uri,
|
|
|
|
- formenctype: FormEncodingType,
|
|
|
|
- formmethod: FormMethod,
|
|
|
|
- formnovalidate: Bool,
|
|
|
|
- formtarget: Target,
|
|
|
|
- name: Id,
|
|
|
|
- value: String,
|
|
|
|
|
|
+ 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
|
|
/// Build a
|
|
/// [`<datalist>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist)
|
|
/// [`<datalist>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist)
|
|
/// element.
|
|
/// element.
|
|
- datalist {};
|
|
|
|
|
|
+ datalist None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)
|
|
/// [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset)
|
|
/// element.
|
|
/// element.
|
|
- fieldset {};
|
|
|
|
|
|
+ fieldset None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form)
|
|
/// [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form)
|
|
/// element.
|
|
/// element.
|
|
- form {
|
|
|
|
|
|
+ form None {
|
|
// accept-charset: SpacedList<CharacterEncoding>,
|
|
// accept-charset: SpacedList<CharacterEncoding>,
|
|
- action: Uri,
|
|
|
|
- autocomplete: OnOff,
|
|
|
|
- enctype: FormEncodingType,
|
|
|
|
- method: FormMethod,
|
|
|
|
- name: Id,
|
|
|
|
- novalidate: Bool,
|
|
|
|
- target: Target,
|
|
|
|
|
|
+ action: Uri DEFAULT,
|
|
|
|
+ autocomplete: OnOff DEFAULT,
|
|
|
|
+ enctype: FormEncodingType DEFAULT,
|
|
|
|
+ method: FormMethod DEFAULT,
|
|
|
|
+ name: Id DEFAULT,
|
|
|
|
+ novalidate: Bool DEFAULT,
|
|
|
|
+ target: Target DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input)
|
|
/// [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input)
|
|
/// element.
|
|
/// element.
|
|
- input {
|
|
|
|
- accept: String,
|
|
|
|
- alt: String,
|
|
|
|
- autocomplete: String,
|
|
|
|
- autofocus: Bool,
|
|
|
|
- capture: String,
|
|
|
|
- checked: Bool,
|
|
|
|
- disabled: Bool,
|
|
|
|
- form: Id,
|
|
|
|
- formaction: Uri,
|
|
|
|
- formenctype: FormEncodingType,
|
|
|
|
- formmethod: FormDialogMethod,
|
|
|
|
- formnovalidate: Bool,
|
|
|
|
- formtarget: Target,
|
|
|
|
- height: isize,
|
|
|
|
- list: Id,
|
|
|
|
- max: String,
|
|
|
|
- maxlength: usize,
|
|
|
|
- min: String,
|
|
|
|
- minlength: usize,
|
|
|
|
- multiple: Bool,
|
|
|
|
- name: Id,
|
|
|
|
- pattern: String,
|
|
|
|
- placeholder: String,
|
|
|
|
- readonly: Bool,
|
|
|
|
- required: Bool,
|
|
|
|
- size: usize,
|
|
|
|
- spellcheck: Bool,
|
|
|
|
- src: Uri,
|
|
|
|
- step: String,
|
|
|
|
- tabindex: usize,
|
|
|
|
- width: isize,
|
|
|
|
-
|
|
|
|
- // Manual implementations below...
|
|
|
|
- // r#type: InputType,
|
|
|
|
|
|
+ input None {
|
|
|
|
+ accept: String DEFAULT,
|
|
|
|
+ alt: String DEFAULT,
|
|
|
|
+ autocomplete: String DEFAULT,
|
|
|
|
+ autofocus: Bool DEFAULT,
|
|
|
|
+ capture: String DEFAULT,
|
|
|
|
+ checked: Bool DEFAULT,
|
|
|
|
+ disabled: Bool DEFAULT,
|
|
|
|
+ form: Id DEFAULT,
|
|
|
|
+ formaction: Uri DEFAULT,
|
|
|
|
+ formenctype: FormEncodingType DEFAULT,
|
|
|
|
+ formmethod: FormDialogMethod DEFAULT,
|
|
|
|
+ formnovalidate: Bool DEFAULT,
|
|
|
|
+ formtarget: Target DEFAULT,
|
|
|
|
+ height: isize 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,
|
|
|
|
+ value: String volatile,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label)
|
|
/// [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label)
|
|
/// element.
|
|
/// element.
|
|
- label {
|
|
|
|
- form: Id,
|
|
|
|
- // r#for: Id,
|
|
|
|
|
|
+ label None {
|
|
|
|
+ form: Id DEFAULT,
|
|
|
|
+ r#for: Id "for",
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend)
|
|
/// [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend)
|
|
/// element.
|
|
/// element.
|
|
- legend {};
|
|
|
|
|
|
+ legend None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<meter>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter)
|
|
/// [`<meter>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter)
|
|
/// element.
|
|
/// element.
|
|
- meter {
|
|
|
|
- value: isize,
|
|
|
|
- min: isize,
|
|
|
|
- max: isize,
|
|
|
|
- low: isize,
|
|
|
|
- high: isize,
|
|
|
|
- optimum: isize,
|
|
|
|
- form: Id,
|
|
|
|
|
|
+ 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
|
|
/// Build a
|
|
/// [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup)
|
|
/// [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup)
|
|
/// element.
|
|
/// element.
|
|
- optgroup {
|
|
|
|
- disabled: Bool,
|
|
|
|
- label: String,
|
|
|
|
|
|
+ optgroup None {
|
|
|
|
+ disabled: Bool DEFAULT,
|
|
|
|
+ label: String DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<option>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
|
|
/// [`<option>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option)
|
|
/// element.
|
|
/// element.
|
|
- option {
|
|
|
|
- disabled: Bool,
|
|
|
|
- label: String,
|
|
|
|
|
|
+ option None {
|
|
|
|
+ disabled: Bool DEFAULT,
|
|
|
|
+ label: String DEFAULT,
|
|
|
|
|
|
|
|
|
|
- value: String,
|
|
|
|
|
|
+ value: String DEFAULT,
|
|
|
|
|
|
- // defined below
|
|
|
|
- // selected: Bool,
|
|
|
|
|
|
+ selected: Bool volatile,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<output>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output)
|
|
/// [`<output>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output)
|
|
/// element.
|
|
/// element.
|
|
- output {
|
|
|
|
- form: Id,
|
|
|
|
- name: Id,
|
|
|
|
|
|
+ output None {
|
|
|
|
+ form: Id DEFAULT,
|
|
|
|
+ name: Id DEFAULT,
|
|
// r#for: SpacedSet<Id>,
|
|
// r#for: SpacedSet<Id>,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress)
|
|
/// [`<progress>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress)
|
|
/// element.
|
|
/// element.
|
|
- progress {
|
|
|
|
- max: f64,
|
|
|
|
- value: f64,
|
|
|
|
|
|
+ progress None {
|
|
|
|
+ max: f64 DEFAULT,
|
|
|
|
+ value: f64 DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select)
|
|
/// [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select)
|
|
/// element.
|
|
/// element.
|
|
- select {
|
|
|
|
|
|
+ select None {
|
|
// defined below
|
|
// defined below
|
|
// value: String,
|
|
// value: String,
|
|
- autocomplete: String,
|
|
|
|
- autofocus: Bool,
|
|
|
|
- disabled: Bool,
|
|
|
|
- form: Id,
|
|
|
|
- multiple: Bool,
|
|
|
|
- name: Id,
|
|
|
|
- required: Bool,
|
|
|
|
- size: usize,
|
|
|
|
|
|
+ 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
|
|
/// Build a
|
|
/// [`<textarea>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
|
|
/// [`<textarea>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea)
|
|
/// element.
|
|
/// element.
|
|
- textarea {
|
|
|
|
- autocomplete: OnOff,
|
|
|
|
- autofocus: Bool,
|
|
|
|
- cols: usize,
|
|
|
|
- disabled: Bool,
|
|
|
|
- form: Id,
|
|
|
|
- maxlength: usize,
|
|
|
|
- minlength: usize,
|
|
|
|
- name: Id,
|
|
|
|
- placeholder: String,
|
|
|
|
- readonly: Bool,
|
|
|
|
- required: Bool,
|
|
|
|
- rows: usize,
|
|
|
|
- spellcheck: BoolOrDefault,
|
|
|
|
- wrap: Wrap,
|
|
|
|
|
|
+ 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: Strign volatile,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -1001,437 +1231,370 @@ builder_constructors! {
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)
|
|
/// [`<details>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)
|
|
/// element.
|
|
/// element.
|
|
- details {
|
|
|
|
- open: Bool,
|
|
|
|
|
|
+ details None {
|
|
|
|
+ open: Bool DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build dialog
|
|
/// Build dialog
|
|
/// [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog)
|
|
/// [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog)
|
|
/// element.
|
|
/// element.
|
|
- dialog {
|
|
|
|
- open: Bool,
|
|
|
|
|
|
+ dialog None {
|
|
|
|
+ open: Bool DEFAULT,
|
|
};
|
|
};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<summary>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary)
|
|
/// [`<summary>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary)
|
|
/// element.
|
|
/// element.
|
|
- summary {};
|
|
|
|
|
|
+ summary None {};
|
|
|
|
|
|
// Web components
|
|
// Web components
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<slot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot)
|
|
/// [`<slot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot)
|
|
/// element.
|
|
/// element.
|
|
- slot {};
|
|
|
|
|
|
+ slot None {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<template>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)
|
|
/// [`<template>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)
|
|
/// element.
|
|
/// element.
|
|
- template {};
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl input {
|
|
|
|
- /// 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`
|
|
|
|
-
|
|
|
|
- pub const r#type: AttributeDiscription = ("type", None, false);
|
|
|
|
-
|
|
|
|
- pub const value: AttributeDiscription = ("value", None, true);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
-volatile attributes
|
|
|
|
-*/
|
|
|
|
-
|
|
|
|
-impl script {
|
|
|
|
- // r#async: Bool,
|
|
|
|
- // r#type: String, // TODO could be an enum
|
|
|
|
|
|
+ template None {};
|
|
|
|
|
|
- pub const r#type: AttributeDiscription = ("type", None, false);
|
|
|
|
-
|
|
|
|
- pub const r#script: AttributeDiscription = ("script", None, false);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl button {
|
|
|
|
- pub const r#type: AttributeDiscription = ("type", None, false);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl select {
|
|
|
|
- pub const value: AttributeDiscription = ("value", None, true);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl option {
|
|
|
|
- pub const selected: AttributeDiscription = ("selected", None, true);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-impl textarea {
|
|
|
|
- pub const value: AttributeDiscription = ("value", None, true);
|
|
|
|
-}
|
|
|
|
-impl label {
|
|
|
|
- pub const r#for: AttributeDiscription = ("for", None, false);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-builder_constructors! {
|
|
|
|
// SVG components
|
|
// SVG components
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<svg>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg)
|
|
/// [`<svg>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg)
|
|
/// element.
|
|
/// element.
|
|
- svg <> "http://www.w3.org/2000/svg" { };
|
|
|
|
|
|
+ svg "http://www.w3.org/2000/svg" { };
|
|
|
|
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<a>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a)
|
|
// /// [`<a>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a)
|
|
// /// element.
|
|
// /// element.
|
|
- // a <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // a "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<animate>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate)
|
|
/// [`<animate>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate)
|
|
/// element.
|
|
/// element.
|
|
- animate <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ animate "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<animateMotion>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateMotion)
|
|
/// [`<animateMotion>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateMotion)
|
|
/// element.
|
|
/// element.
|
|
- animateMotion <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ animateMotion "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<animateTransform>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateTransform)
|
|
/// [`<animateTransform>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateTransform)
|
|
/// element.
|
|
/// element.
|
|
- animateTransform <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ animateTransform "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<circle>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle)
|
|
/// [`<circle>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle)
|
|
/// element.
|
|
/// element.
|
|
- circle <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ circle "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<clipPath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)
|
|
/// [`<clipPath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)
|
|
/// element.
|
|
/// element.
|
|
- clipPath <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ clipPath "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<defs>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs)
|
|
/// [`<defs>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs)
|
|
/// element.
|
|
/// element.
|
|
- defs <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ defs "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<desc>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc)
|
|
/// [`<desc>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc)
|
|
/// element.
|
|
/// element.
|
|
- desc <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ desc "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<discard>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/discard)
|
|
/// [`<discard>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/discard)
|
|
/// element.
|
|
/// element.
|
|
- discard <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ discard "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<ellipse>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse)
|
|
/// [`<ellipse>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse)
|
|
/// element.
|
|
/// element.
|
|
- ellipse <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ ellipse "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feBlend>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feBlend)
|
|
/// [`<feBlend>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feBlend)
|
|
/// element.
|
|
/// element.
|
|
- feBlend <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feBlend "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feColorMatrix>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix)
|
|
/// [`<feColorMatrix>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix)
|
|
/// element.
|
|
/// element.
|
|
- feColorMatrix <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feColorMatrix "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feComponentTransfer>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComponentTransfer)
|
|
/// [`<feComponentTransfer>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComponentTransfer)
|
|
/// element.
|
|
/// element.
|
|
- feComponentTransfer <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feComponentTransfer "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feComposite>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComposite)
|
|
/// [`<feComposite>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComposite)
|
|
/// element.
|
|
/// element.
|
|
- feComposite <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feComposite "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feConvolveMatrix>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix)
|
|
/// [`<feConvolveMatrix>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix)
|
|
/// element.
|
|
/// element.
|
|
- feConvolveMatrix <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feConvolveMatrix "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feDiffuseLighting>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDiffuseLighting)
|
|
/// [`<feDiffuseLighting>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDiffuseLighting)
|
|
/// element.
|
|
/// element.
|
|
- feDiffuseLighting <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feDiffuseLighting "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feDisplacementMap>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDisplacementMap)
|
|
/// [`<feDisplacementMap>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDisplacementMap)
|
|
/// element.
|
|
/// element.
|
|
- feDisplacementMap <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feDisplacementMap "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feDistantLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDistantLight)
|
|
/// [`<feDistantLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDistantLight)
|
|
/// element.
|
|
/// element.
|
|
- feDistantLight <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feDistantLight "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feDropShadow>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDropShadow)
|
|
/// [`<feDropShadow>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDropShadow)
|
|
/// element.
|
|
/// element.
|
|
- feDropShadow <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feDropShadow "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feFlood>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFlood)
|
|
/// [`<feFlood>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFlood)
|
|
/// element.
|
|
/// element.
|
|
- feFlood <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feFlood "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feFuncA>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncA)
|
|
/// [`<feFuncA>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncA)
|
|
/// element.
|
|
/// element.
|
|
- feFuncA <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feFuncA "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feFuncB>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncB)
|
|
/// [`<feFuncB>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncB)
|
|
/// element.
|
|
/// element.
|
|
- feFuncB <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feFuncB "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feFuncG>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncG)
|
|
/// [`<feFuncG>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncG)
|
|
/// element.
|
|
/// element.
|
|
- feFuncG <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feFuncG "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feFuncR>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncR)
|
|
/// [`<feFuncR>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncR)
|
|
/// element.
|
|
/// element.
|
|
- feFuncR <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feFuncR "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feGaussianBlur>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur)
|
|
/// [`<feGaussianBlur>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur)
|
|
/// element.
|
|
/// element.
|
|
- feGaussianBlur <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feGaussianBlur "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feImage>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feImage)
|
|
/// [`<feImage>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feImage)
|
|
/// element.
|
|
/// element.
|
|
- feImage <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feImage "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feMerge>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMerge)
|
|
/// [`<feMerge>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMerge)
|
|
/// element.
|
|
/// element.
|
|
- feMerge <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feMerge "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feMergeNode>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMergeNode)
|
|
/// [`<feMergeNode>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMergeNode)
|
|
/// element.
|
|
/// element.
|
|
- feMergeNode <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feMergeNode "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feMorphology>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology)
|
|
/// [`<feMorphology>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology)
|
|
/// element.
|
|
/// element.
|
|
- feMorphology <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feMorphology "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feOffset>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feOffset)
|
|
/// [`<feOffset>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feOffset)
|
|
/// element.
|
|
/// element.
|
|
- feOffset <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feOffset "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<fePointLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/fePointLight)
|
|
/// [`<fePointLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/fePointLight)
|
|
/// element.
|
|
/// element.
|
|
- fePointLight <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ fePointLight "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feSpecularLighting>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpecularLighting)
|
|
/// [`<feSpecularLighting>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpecularLighting)
|
|
/// element.
|
|
/// element.
|
|
- feSpecularLighting <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feSpecularLighting "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feSpotLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpotLight)
|
|
/// [`<feSpotLight>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpotLight)
|
|
/// element.
|
|
/// element.
|
|
- feSpotLight <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feSpotLight "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feTile>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTile)
|
|
/// [`<feTile>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTile)
|
|
/// element.
|
|
/// element.
|
|
- feTile <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feTile "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<feTurbulence>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTurbulence)
|
|
/// [`<feTurbulence>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTurbulence)
|
|
/// element.
|
|
/// element.
|
|
- feTurbulence <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ feTurbulence "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<filter>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter)
|
|
/// [`<filter>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter)
|
|
/// element.
|
|
/// element.
|
|
- filter <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ filter "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<foreignObject>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject)
|
|
/// [`<foreignObject>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject)
|
|
/// element.
|
|
/// element.
|
|
- foreignObject <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ foreignObject "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<g>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g)
|
|
/// [`<g>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g)
|
|
/// element.
|
|
/// element.
|
|
- g <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ g "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<hatch>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatch)
|
|
/// [`<hatch>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatch)
|
|
/// element.
|
|
/// element.
|
|
- hatch <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ hatch "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<hatchpath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatchpath)
|
|
/// [`<hatchpath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/hatchpath)
|
|
/// element.
|
|
/// element.
|
|
- hatchpath <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ hatchpath "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<image>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image)
|
|
// /// [`<image>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/image)
|
|
// /// element.
|
|
// /// element.
|
|
- // image <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // image "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<line>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line)
|
|
/// [`<line>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line)
|
|
/// element.
|
|
/// element.
|
|
- line <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ line "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<linearGradient>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient)
|
|
/// [`<linearGradient>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient)
|
|
/// element.
|
|
/// element.
|
|
- linearGradient <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ linearGradient "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<marker>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker)
|
|
/// [`<marker>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker)
|
|
/// element.
|
|
/// element.
|
|
- marker <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ marker "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<mask>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask)
|
|
/// [`<mask>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask)
|
|
/// element.
|
|
/// element.
|
|
- mask <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ mask "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<metadata>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/metadata)
|
|
/// [`<metadata>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/metadata)
|
|
/// element.
|
|
/// element.
|
|
- metadata <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ metadata "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<mpath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mpath)
|
|
/// [`<mpath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mpath)
|
|
/// element.
|
|
/// element.
|
|
- mpath <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ mpath "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<path>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path)
|
|
/// [`<path>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path)
|
|
/// element.
|
|
/// element.
|
|
- path <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ path "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<pattern>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/pattern)
|
|
/// [`<pattern>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/pattern)
|
|
/// element.
|
|
/// element.
|
|
- pattern <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ pattern "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<polygon>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon)
|
|
/// [`<polygon>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon)
|
|
/// element.
|
|
/// element.
|
|
- polygon <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ polygon "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<polyline>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polyline)
|
|
/// [`<polyline>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polyline)
|
|
/// element.
|
|
/// element.
|
|
- polyline <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ polyline "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<radialGradient>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/radialGradient)
|
|
/// [`<radialGradient>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/radialGradient)
|
|
/// element.
|
|
/// element.
|
|
- radialGradient <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ radialGradient "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<rect>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect)
|
|
/// [`<rect>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect)
|
|
/// element.
|
|
/// element.
|
|
- rect <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ rect "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<script>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script)
|
|
// /// [`<script>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script)
|
|
// /// element.
|
|
// /// element.
|
|
- // script <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // script "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<set>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/set)
|
|
/// [`<set>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/set)
|
|
/// element.
|
|
/// element.
|
|
- set <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ set "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<stop>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop)
|
|
/// [`<stop>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop)
|
|
/// element.
|
|
/// element.
|
|
- stop <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ stop "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<style>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style)
|
|
// /// [`<style>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style)
|
|
// /// element.
|
|
// /// element.
|
|
- // style <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // style "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<svg>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg)
|
|
// /// [`<svg>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg)
|
|
// /// element.
|
|
// /// element.
|
|
- // svg <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // svg "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<switch>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/switch)
|
|
/// [`<switch>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/switch)
|
|
/// element.
|
|
/// element.
|
|
- switch <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ switch "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<symbol>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol)
|
|
/// [`<symbol>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol)
|
|
/// element.
|
|
/// element.
|
|
- symbol <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ symbol "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<text>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text)
|
|
/// [`<text>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text)
|
|
/// element.
|
|
/// element.
|
|
- text <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ text "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<textPath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath)
|
|
/// [`<textPath>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath)
|
|
/// element.
|
|
/// element.
|
|
- textPath <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ textPath "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title)
|
|
// /// [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title)
|
|
// /// element.
|
|
// /// element.
|
|
- // title <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // title "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<tspan>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tspan)
|
|
/// [`<tspan>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/tspan)
|
|
/// element.
|
|
/// element.
|
|
- tspan <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ tspan "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
/// Build a
|
|
/// Build a
|
|
/// [`<view>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/view)
|
|
/// [`<view>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/view)
|
|
/// element.
|
|
/// element.
|
|
- view <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ view "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
// /// Build a
|
|
// /// Build a
|
|
// /// [`<use>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use)
|
|
// /// [`<use>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use)
|
|
// /// element.
|
|
// /// element.
|
|
- // use <> "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
+ // use "http://www.w3.org/2000/svg" {};
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|