0

Bug when using the default comment snippet with html <style>

RKS 12 lat temu 0

Sorry if this is a duplicate, I searched but didn't come up with anything.

When you have <style></style> in the head section of your html document and try to command+/ it returns the expected behavior of <!-- <style></style> -->


However, if you have some CSS in there like:


<style>

    body { height: 100%; }

</style>


and you command+/ on the <style> tag, it will return /*<style>*/ which won't comment it out in the html doc. Selecting the whole group will also wrap the group in /**/ instead of <!-- -->.