Skip to content

Commit 28f4314

Browse files
committed
failing test for #9645
1 parent 66d540d commit 28f4314

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { test } from '../../test';
2+
3+
export default test({
4+
html: '<svg><path></path></svg>',
5+
6+
test({ assert, target }) {
7+
const svg = target.querySelector('svg');
8+
const rect = target.querySelector('path');
9+
assert.equal(svg?.namespaceURI, 'http://www.w3.org/2000/svg');
10+
assert.equal(rect?.namespaceURI, 'http://www.w3.org/2000/svg');
11+
}
12+
});
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script>
2+
// ensure these are treated as dynamic, despite whatever
3+
// optimisations we might apply
4+
export let svg = 'svg';
5+
export let path = 'path';
6+
</script>
7+
8+
<svelte:element this={svg}>
9+
<svelte:element this={path}></svelte:element>
10+
</svelte:element>

0 commit comments

Comments
 (0)