diff --git a/.changeset/shiny-kangaroos-move.md b/.changeset/shiny-kangaroos-move.md new file mode 100644 index 000000000000..cde5eb29b52e --- /dev/null +++ b/.changeset/shiny-kangaroos-move.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +fix: set `volume` through DOM property rather than attribute diff --git a/packages/svelte/src/compiler/phases/constants.js b/packages/svelte/src/compiler/phases/constants.js index 4201e54c7771..898a77c4bf4b 100644 --- a/packages/svelte/src/compiler/phases/constants.js +++ b/packages/svelte/src/compiler/phases/constants.js @@ -4,6 +4,7 @@ export const DOMProperties = [ ...Object.values(AttributeAliases), 'value', 'inert', + 'volume', ...DOMBooleanAttributes ];