mirror of https://github.com/sveltejs/svelte
add another failing test for #9645
parent
93c168eda1
commit
1abeb23d4e
@ -0,0 +1,10 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
test({ assert, target }) {
|
||||
const svg = target.querySelector('svg');
|
||||
const path = target.querySelector('path');
|
||||
assert.equal(svg?.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
assert.equal(path?.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,13 @@
|
||||
<script>
|
||||
const iconNode = [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]];
|
||||
</script>
|
||||
|
||||
<svg
|
||||
width="24" height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor" stroke-width="2">
|
||||
{#each iconNode as [tag, attrs]}
|
||||
<svelte:element this={tag} {...attrs}/>
|
||||
{/each}
|
||||
</svg>
|
||||
Loading…
Reference in new issue