Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: hr, script and template as valid select children (#11344)
Closes #11342 --------- Co-authored-by: Jeremiasz Major <jrh.mjr@gmail.com>
- Loading branch information
1 parent
cd79807
commit d3949a6
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"svelte": patch | ||
--- | ||
|
||
fix: make hr, script and template valid select children |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/svelte/tests/validator/samples/invalid-node-placement-3/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
12 changes: 12 additions & 0 deletions
12
packages/svelte/tests/validator/samples/invalid-node-placement-3/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script> | ||
</script> | ||
|
||
<select> | ||
<option value="0">The</option> | ||
<hr> | ||
<script> | ||
console.log("hei"); | ||
</script> | ||
<template>Cool</template> | ||
<option value="1">bug</option> | ||
</select> |