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
<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) (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:37:28.172Z)
OS version: Darwin arm64 21.2.0
Restricted Mode: No
Moreover, <img class=foo/> gets highlighted as if the slash was not part of the attribute value:
However, with a spec-compliant HTML parser, it is part of the attribute value due to the slash going through the "Anything else" case in the "Attribute value (unquoted) state".
It seems that this project is no longer being maintained. So, does that imply that unless it is fixed in this project, it won't be fixed in VSCode either?
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) (899d46d82c4c95423fb7e10e68eba52050e30ba3, 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
|Process Argv|--crash-reporter-id 853ff5a3-ca88-48f7-846c-f5ed1cf44a91|
|Screen Reader|no|
|VM|0%|
Extensions (18)
(1 theme extensions excluded)
A/B Experiments
Originally from @Bluebie in microsoft/vscode#140360
The text was updated successfully, but these errors were encountered: