mirror of https://github.com/sveltejs/svelte
wip of trying to auto-open a tbody when we detect we need it. currently fails because the dom walking mechanism needs to know that it should walk differently in that case
parent
06e7da8266
commit
befad31a7a
@ -0,0 +1,57 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
let console_error = console.error;
|
||||
|
||||
/**
|
||||
* @type {any[]}
|
||||
*/
|
||||
const log = [];
|
||||
|
||||
export default test({
|
||||
solo: true,
|
||||
compileOptions: {
|
||||
dev: true // enable validation to ensure it doesn't throw
|
||||
},
|
||||
|
||||
html: `
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>works1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>works2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>works3</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>works4</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>works5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>works6</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
`
|
||||
});
|
@ -0,0 +1,28 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>works1</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
{#each ['works2', 'works3'] as cell}
|
||||
<tr>
|
||||
<td>{cell}</td>
|
||||
</tr>
|
||||
{/each}
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>works4</td>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>works5</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<td>works6</td>
|
||||
</table>
|
Loading…
Reference in new issue