You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTML syntax highlighting can be broken by inserting an inline script tag with if condition.
VSCode Version: 1.42.1
OS Version: macOS 10.14.6
Steps to Reproduce:
Insert <script>if (1) {}</script> or <script>if (1) func()</script> into an HTML file.
Syntax highlighting is broken.
This can generally be worked around by adding a closing semi-colon.
The first example can also be worked around by removing a space: <script>if (1){}</script>.
Does this issue occur when all extensions are disabled?: Yes/No
Yes
The text was updated successfully, but these errors were encountered:
mathiasvr
changed the title
HTML syntax highlighter
HTML syntax highlighting broken by inline script tag
Feb 19, 2020
The HTML syntax highlighting can be broken by inserting an inline script tag with if condition.
Steps to Reproduce:
<script>if (1) {}</script>
or<script>if (1) func()</script>
into an HTML file.This can generally be worked around by adding a closing semi-colon.
The first example can also be worked around by removing a space:
<script>if (1){}</script>
.Does this issue occur when all extensions are disabled?: Yes/No
Yes
The text was updated successfully, but these errors were encountered: