mirror of https://github.com/sveltejs/svelte
[feat] skip custom element check if <svelte:element> uses under svg (#7869)
* add test * skip custom element check if svelte element uses under svgpull/7873/head
parent
56bcec5ddd
commit
433460ec2d
@ -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