apply the same fixes to element specific attributes

This commit is contained in:
Evan Almloff 2023-01-12 11:31:21 -06:00
parent 232b49a3be
commit d8d483a8b4

View file

@ -294,7 +294,7 @@ builder_constructors! {
rel: LinkType DEFAULT, rel: LinkType DEFAULT,
sizes: String DEFAULT, // FIXME sizes: String DEFAULT, // FIXME
title: String DEFAULT, // FIXME title: String DEFAULT, // FIXME
r#type: Mime DEFAULT, r#type: Mime "type",
integrity: String DEFAULT, integrity: String DEFAULT,
}; };
@ -312,7 +312,7 @@ builder_constructors! {
/// [`<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 None { style None {
r#type: Mime DEFAULT, r#type: Mime "type",
media: String DEFAULT, // FIXME media query media: String DEFAULT, // FIXME media query
nonce: Nonce DEFAULT, nonce: Nonce DEFAULT,
title: String DEFAULT, // FIXME title: String DEFAULT, // FIXME
@ -517,7 +517,7 @@ builder_constructors! {
ol None { ol None {
reversed: Bool DEFAULT, reversed: Bool DEFAULT,
start: isize DEFAULT, start: isize DEFAULT,
r#type: OrderedListType DEFAULT, r#type: OrderedListType "type",
}; };
/// Build a /// Build a
@ -546,7 +546,7 @@ builder_constructors! {
href: Uri DEFAULT, href: Uri DEFAULT,
hreflang: LanguageTag DEFAULT, hreflang: LanguageTag DEFAULT,
target: Target DEFAULT, target: Target DEFAULT,
r#type: Mime DEFAULT, r#type: Mime "type",
// ping: SpacedList<Uri>, // ping: SpacedList<Uri>,
// rel: SpacedList<LinkType>, // rel: SpacedList<LinkType>,
ping: SpacedList DEFAULT, ping: SpacedList DEFAULT,
@ -737,7 +737,7 @@ builder_constructors! {
muted: Bool DEFAULT, muted: Bool DEFAULT,
preload: Preload DEFAULT, preload: Preload DEFAULT,
src: Uri DEFAULT, src: Uri DEFAULT,
r#loop: Bool DEFAULT, r#loop: Bool "loop",
}; };
/// Build a /// Build a
@ -783,7 +783,7 @@ builder_constructors! {
controls: Bool DEFAULT, controls: Bool DEFAULT,
crossorigin: CrossOrigin DEFAULT, crossorigin: CrossOrigin DEFAULT,
height: usize DEFAULT, height: usize DEFAULT,
r#loop: Bool DEFAULT, r#loop: Bool "loop",
muted: Bool DEFAULT, muted: Bool DEFAULT,
preload: Preload DEFAULT, preload: Preload DEFAULT,
playsinline: Bool DEFAULT, playsinline: Bool DEFAULT,
@ -801,7 +801,7 @@ builder_constructors! {
embed None { embed None {
height: usize DEFAULT, height: usize DEFAULT,
src: Uri DEFAULT, src: Uri DEFAULT,
r#type: Mime DEFAULT, r#type: Mime "type",
width: usize DEFAULT, width: usize DEFAULT,
}; };
@ -819,13 +819,13 @@ builder_constructors! {
srcdoc: Uri DEFAULT, srcdoc: Uri DEFAULT,
width: usize DEFAULT, width: usize DEFAULT,
marginWidth: String DEFAULT, margin_width: String "marginWidth",
align: String DEFAULT, align: String DEFAULT,
longdesc: String DEFAULT, longdesc: String DEFAULT,
scrolling: String DEFAULT, scrolling: String DEFAULT,
marginHeight: String DEFAULT, margin_height: String "marginHeight",
frameBorder: String DEFAULT, frame_border: String "frameBorder",
// sandbox: SpacedSet<Sandbox>, // sandbox: SpacedSet<Sandbox>,
}; };
@ -837,7 +837,7 @@ builder_constructors! {
form: Id DEFAULT, form: Id DEFAULT,
height: usize DEFAULT, height: usize DEFAULT,
name: Id DEFAULT, name: Id DEFAULT,
r#type: Mime DEFAULT, r#type: Mime "type",
typemustmatch: Bool DEFAULT, typemustmatch: Bool DEFAULT,
usemap: String DEFAULT, // TODO should be a fragment starting with '#' usemap: String DEFAULT, // TODO should be a fragment starting with '#'
width: usize DEFAULT, width: usize DEFAULT,
@ -861,7 +861,7 @@ builder_constructors! {
/// element. /// element.
source None { source None {
src: Uri DEFAULT, src: Uri DEFAULT,
r#type: Mime DEFAULT, r#type: Mime "type",
}; };