mirror of https://github.com/sveltejs/svelte
[fix] ensure truthy non-boolean attributes are rendered correctly in SSR (#7066)
parent
966c03a317
commit
4240455e02
@ -1,7 +1,8 @@
|
||||
export default {
|
||||
html: '<textarea readonly></textarea>',
|
||||
html: '<textarea readonly data-attr="true"></textarea>',
|
||||
test({ assert, target }) {
|
||||
const textarea = target.querySelector('textarea');
|
||||
assert.equal(textarea.dataset.attr, 'true');
|
||||
assert.ok(textarea.readOnly);
|
||||
}
|
||||
};
|
||||
|
@ -1 +1 @@
|
||||
<textarea readonly="{true}"></textarea>
|
||||
<textarea readonly={true} data-attr={true} />
|
||||
|
Loading…
Reference in new issue