mirror of https://github.com/sveltejs/svelte
parent
15dcf6830e
commit
651f1fd102
@ -1,3 +1,7 @@
|
||||
<svelte:element this="svg" xmlns="http://www.w3.org/2000/svg">
|
||||
<svelte:element this="path" xmlns="http://www.w3.org/2000/svg"></svelte:element>
|
||||
<script>
|
||||
const tag = { svg: 'svg', path: 'path' };
|
||||
</script>
|
||||
|
||||
<svelte:element this={tag.svg} xmlns="http://www.w3.org/2000/svg">
|
||||
<svelte:element this={tag.path} xmlns="http://www.w3.org/2000/svg" />
|
||||
</svelte:element>
|
||||
@ -0,0 +1,13 @@
|
||||
export default {
|
||||
html: `
|
||||
<div>
|
||||
<p></p>
|
||||
</div>
|
||||
`,
|
||||
|
||||
test({ assert, target }) {
|
||||
const p = target.querySelector('p');
|
||||
|
||||
assert.notEqual(p, undefined);
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
const p = 'p';
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<svelte:element this={p} />
|
||||
</div>
|
||||
Loading…
Reference in new issue