Skip to content

Commit da486d2

Browse files
authored
fix: include missing attributes in html source tag (#5559)
as per https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/source
1 parent 57f4ca5 commit da486d2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/html/src/elements.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,11 @@ builder_constructors! {
12141214
source None {
12151215
src: Uri DEFAULT,
12161216
r#type: Mime "type",
1217+
srcset: String DEFAULT,
1218+
media: String DEFAULT,
1219+
sizes: String DEFAULT,
1220+
width: usize DEFAULT,
1221+
height: usize DEFAULT,
12171222
};
12181223

12191224

0 commit comments

Comments
 (0)