mirror of https://github.com/sveltejs/svelte
fix handling of boolean attributes in SSR (#1109)
parent
a4f6fed0e2
commit
57b737b3bc
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
html: `<textarea></textarea>`,
|
||||||
|
test (assert, component, target) {
|
||||||
|
const textarea = target.querySelector('textarea');
|
||||||
|
assert.ok(textarea.readOnly === false);
|
||||||
|
},
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
<textarea readonly="{{false}}"></textarea>
|
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
html: `<textarea readonly></textarea>`,
|
||||||
|
test (assert, component, target) {
|
||||||
|
const textarea = target.querySelector('textarea');
|
||||||
|
assert.ok(textarea.readOnly);
|
||||||
|
},
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
<textarea readonly="{{true}}"></textarea>
|
Loading…
Reference in new issue