mirror of https://github.com/sveltejs/svelte
parent
56bcec5ddd
commit
8ee6284c68
@ -0,0 +1,10 @@
|
||||
export default {
|
||||
html: '<svg xmlns="http://www.w3.org/2000/svg"><path xmlns="http://www.w3.org/2000/svg"></path></svg>',
|
||||
|
||||
test({ assert, target }) {
|
||||
const svg = target.querySelector('svg');
|
||||
const rect = target.querySelector('path');
|
||||
assert.equal(svg.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
assert.equal(rect.namespaceURI, 'http://www.w3.org/2000/svg');
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,3 @@
|
||||
<svelte:element this="svg" xmlns="http://www.w3.org/2000/svg">
|
||||
<svelte:element this="path" xmlns="http://www.w3.org/2000/svg"></svelte:element>
|
||||
</svelte:element>
|
||||
Loading…
Reference in new issue