mirror of https://github.com/sveltejs/svelte
Merge pull request #1123 from sveltejs/gh-1109
fix handling of boolean attributes in SSR (#1109)pull/1124/head
commit
c35eb67af2
@ -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