Skip to content

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

@PrzemyslawKlys

Description

@PrzemyslawKlys
  • 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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughtmlHTML support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions