-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scan): handle html script tag attributes that contain ">" (#13101)
- Loading branch information
Showing
4 changed files
with
36 additions
and
6 deletions.
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
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,22 @@ | ||
<!-- | ||
https://github.com/vuejs/core/issues/8171 | ||
https://github.com/vitejs/vite-plugin-vue/issues/162 | ||
generic attribute includes angle brackets which breaks scanning | ||
This file only verifies that the scanner can work with such usage and nothing | ||
else. | ||
--> | ||
|
||
<script lang="ts"> | ||
export class Item<TValue> { | ||
value: TValue | ||
} | ||
</script> | ||
|
||
<script setup lang="ts" generic="TItem extends Item<TValue>, TValue"> | ||
defineProps<{ | ||
items: TItem[] | ||
modelValue: TItem[] | ||
}>() | ||
</script> | ||
|
||
<template>{{ items }}</template> |
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
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