HTML syntax highlighting is incorrect #140360
Labels
grammar
Syntax highlighting grammar
upstream-issue-linked
This is an upstream issue that has been reported upstream
Issue Type: Bug
if you enter in:
<a href=https://example.org/>foo</a>
in a html highlighted document, the final / in the href attribute value is highlighted in a grey colour, as if is a self closing xml tag. I believe this behaviour is deceptive, it gives the wrong impression that a html parser would understand the code in this way, but the parsed value of the tag's href attribute is indeed "https://example.org/", which is true in Chromium and in the HTML5 spec.VS Code version: Code 1.63.2 (Universal) (899d46d, 2021-12-15T09:37:28.172Z)
OS version: Darwin arm64 21.2.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (18)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: