It seems Visual Studio 2019 (not tested previous versions) doesn't like div tags inside dl.
The code copy-pasted from here (3rd example) inside an HTML page in Visual Studio gives warnings.
The following example illustrates the use of the dl element to mark up metadata of sorts. At the end of the example, one group has two metadata labels ("Authors" and "Editors") and two values ("Robert Rothman" and "Daniel Jackson"). This example also uses the div element around the groups of dt and dd element, to aid with styling.
Please note that my VS2019 is up to date.
What can be done to avoid these specific warnings? And worst, indentation and expand/collapse features are broken
To reproduce:
- Open Visual Studio 2019
- Add a new HTML page
- Copy/Paste code from here (3rd example)
- You'll see all
divtags with warnings and no expand/collapse ondivtags. If you replacedlwithdiveverything is okay then.
If I do the same thing in VSCode, it works just fine.
So, it seems VS2019 doesn't like dl with div tags inside.


