mirror of https://github.com/sveltejs/svelte
Prevent element property set from throwing errors for readonly properties. Fixes #3681.
parent
43245a30fd
commit
57aeddcf85
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
skip_if_ssr: true, // DOM and SSR output is different, a separate SSR test exists
|
||||
html: `<input form="qux" list="quu" />`,
|
||||
|
||||
test({ assert, target }) {
|
||||
const div = target.querySelector('input');
|
||||
assert.equal(div.value, 'bar');
|
||||
}
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
let props = {
|
||||
value: 'bar',
|
||||
form: 'qux',
|
||||
list: 'quu',
|
||||
};
|
||||
</script>
|
||||
|
||||
<input {...props} />
|
@ -0,0 +1 @@
|
||||
<input value="bar" form="qux" list="quu" />
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
let props = {
|
||||
value: 'bar',
|
||||
form: 'qux',
|
||||
list: 'quu',
|
||||
};
|
||||
</script>
|
||||
|
||||
<input {...props} />
|
Loading…
Reference in new issue