Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] Unecessary warning when script contains quotes on the same line as an onFoo attribute using the same quotes #109092

Open
PrzemyslawKlys opened this issue Oct 21, 2020 · 1 comment · May be fixed by #171547
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug html HTML support issues
Milestone

Comments

@PrzemyslawKlys
Copy link

  • VSCode Version: 1.50.1
  • OS Version: Windows 10 2004

Steps to Reproduce:

  1. Open HTML file and paste: <script>"L"</script><a onclick="show();"></a>
  2. Notice

image

  1. When the line is split into 2 it's not affected
<script>"L"</script>
<a onclick="show();"></a>

Originally reported in: trullock/NUglify#166. As the owner of NUglify states: The problem is the VSC HTML parser/IntelliSense when you have a script which contains quotes on the same line as an onFoo attribute using the same quotes

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Oct 21, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@aeschli aeschli added html HTML support issues bug Issue identified by VS Code Team member as probable bug labels Oct 22, 2020
@aeschli aeschli added this to the Backlog milestone Oct 22, 2020
@aeschli aeschli changed the title HTML parser/intellisense issue when script contains quotes on the same line as an onFoo attribute using the same quotes [html] Unecessary warning when script contains quotes on the same line as an onFoo attribute using the same quotes Oct 22, 2020
@johnsoncodehk johnsoncodehk linked a pull request Jun 23, 2024 that will close this issue
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug html HTML support issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants