mirror of https://github.com/sveltejs/svelte
parent
e4faa7805d
commit
7e762cf481
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: reevaluate namespace in slots
|
@ -0,0 +1,9 @@
|
||||
import { ok, test } from '../../test';
|
||||
|
||||
export default test({
|
||||
async test({ assert, target }) {
|
||||
const circle = target.querySelector('circle');
|
||||
ok(circle);
|
||||
assert.equal(circle.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
}
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Points from './points.svelte';
|
||||
</script>
|
||||
|
||||
<svg>
|
||||
<Points />
|
||||
</svg>
|
@ -0,0 +1,3 @@
|
||||
<slot>
|
||||
<circle cx={10} cy={10} r={5} />
|
||||
</slot>
|
Loading…
Reference in new issue