Skip to content

Commit ca0e8a3

Browse files
committed
test for conflicting slot names
1 parent 1de58d9 commit ca0e8a3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/runtime/samples/slot-names/Nested.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
<slot name="-header2_" />
44
<slot name="3header" />
55
<slot name="_header4" />
6+
<slot name="header-5" />
7+
<slot name="header&5" />
68
</div>

test/runtime/samples/slot-names/_config.js

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export default {
55
<h2 slot="-header2_">Header 2</h2>
66
<h3 slot="3header">Header 3</h3>
77
<h4 slot="_header4">Header 4</h4>
8+
<h5 slot="header-5">Header 5</h5>
9+
<h5 slot="header&5">Header 5b</h5>
810
</div>
911
`
1012
};

test/runtime/samples/slot-names/main.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77
<h2 slot="-header2_">Header 2</h2>
88
<h3 slot="3header">Header 3</h3>
99
<h4 slot="_header4">Header 4</h4>
10+
<h5 slot="header-5">Header 5</h5>
11+
<h5 slot="header&5">Header 5b</h5>
1012
</Nested>

0 commit comments

Comments
 (0)