fix: correctly handle `novalidate` attribute casing (#15083)

This PR fixes #15082 by correctly handling the HTML element novalidate attribute casing through noValidate DOM property mapping.
pull/15057/head
Trevor N. Suarez 8 months ago committed by GitHub
parent 7da86ef80c
commit eee808fb79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: correctly handle `novalidate` attribute casing

@ -196,7 +196,8 @@ const ATTRIBUTE_ALIASES = {
readonly: 'readOnly',
defaultvalue: 'defaultValue',
defaultchecked: 'defaultChecked',
srcobject: 'srcObject'
srcobject: 'srcObject',
novalidate: 'noValidate'
};
/**

@ -0,0 +1,8 @@
import { test } from '../../test';
export default test({
html: `
<form novalidate></form>
<form novalidate></form>
`
});

@ -0,0 +1,6 @@
<script>
let noValidate = $state(true);
</script>
<form novalidate={true}></form>
<form {noValidate}></form>
Loading…
Cancel
Save