Open n1ckoates opened 3 years ago
Issue Type: Bug
Create an HTML attribute with JS in it, such as a button onclick event.
onclick
Since attributes cannot use raw double quotes (Already used to open/close the attribute, HTML will give a syntax error), use ".
"
VSC will incorrectly mark it as an error
Example <button onclick="someFunction("string");">
<button onclick="someFunction("string");">
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-10T23:34:32.027Z) OS version: Windows_NT x64 10.0.18363
Sorry, I accidentally hit the close button. GitHub's mobile app is a bit confusing 😅
Any update on this? It's still an issue...
Issue Type: Bug
Create an HTML attribute with JS in it, such as a button
onclick
event.Since attributes cannot use raw double quotes (Already used to open/close the attribute, HTML will give a syntax error), use
"
.VSC will incorrectly mark it as an error
Example
<button onclick="someFunction("string");">
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-10T23:34:32.027Z) OS version: Windows_NT x64 10.0.18363
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 2904)| |GPU Status|2d_canvas: enabledflash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.93GB (10.94GB free)| |Process Argv|--crash-reporter-id 7653d454-ecf1-40e5-ad93-80b2e56cc4b5| |Screen Reader|no| |VM|67%|
Extensions (6)
Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|2.1.13 denizenscript|den|0.3.5 prettier-vscode|esb|5.8.0 discord-vscode|icr|4.0.0 python|ms-|2020.11.371526539 jupyter|ms-|2020.11.392013122