mirror of https://github.com/sveltejs/svelte
dont use skipped text nodes as anchors - fixes #843
parent
b64d95021a
commit
61476048c8
@ -0,0 +1,25 @@
|
||||
export default {
|
||||
data: {
|
||||
foo: ['a'],
|
||||
bar: ['c']
|
||||
},
|
||||
|
||||
html: `
|
||||
<svg>
|
||||
<g class='foo'>a</g>
|
||||
<g class='bar'>c</g>
|
||||
</svg>
|
||||
`,
|
||||
|
||||
test(assert, component, target) {
|
||||
component.set({ foo: ['a', 'b'] });
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<svg>
|
||||
<g class='foo'>a</g>
|
||||
<g class='foo'>b</g>
|
||||
<g class='bar'>c</g>
|
||||
</svg>
|
||||
`);
|
||||
}
|
||||
};
|
After Width: | Height: | Size: 119 B |
Loading…
Reference in new issue