Skip to content

Commit 48c5503

Browse files
authored
fix: set volume through DOM property (#12485)
Already works when using spread attributes, but not when setting it on its own fixes #12029
1 parent 35ab21d commit 48c5503

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/shiny-kangaroos-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
fix: set `volume` through DOM property rather than attribute

packages/svelte/src/compiler/phases/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const DOMProperties = [
44
...Object.values(AttributeAliases),
55
'value',
66
'inert',
7+
'volume',
78
...DOMBooleanAttributes
89
];
910

0 commit comments

Comments
 (0)