mirror of https://github.com/sveltejs/svelte
Merge pull request #3403 from davebrent/gh-3321
Fix namespace for svg elements inside slotspull/3405/head
commit
626b8335c2
After Width: | Height: | Size: 23 B |
@ -0,0 +1,17 @@
|
||||
export default {
|
||||
html: `
|
||||
<div>
|
||||
<svg>
|
||||
<line x1="0" y1="0" x2="100" y2="100" />
|
||||
</svg>
|
||||
</div>
|
||||
`,
|
||||
|
||||
test({ assert, target }) {
|
||||
const div = target.querySelector('div');
|
||||
assert.equal(div.namespaceURI, 'http://www.w3.org/1999/xhtml');
|
||||
|
||||
const line = target.querySelector('line');
|
||||
assert.equal(line.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
}
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Widget from './Widget.svelte'
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<Widget>
|
||||
<line x1="0" y1="0" x2="100" y2="100" />
|
||||
</Widget>
|
||||
</div>
|
Loading…
Reference in new issue