Groups | Blog | Home
all groups > visual studio .net general > september 2005 >

visual studio .net general : Visual Studio keeps removing my closing </li> tags


Jeremy Chapman
9/16/2005 3:16:19 PM
Some tags don't require ending tags. I prefer them, but that doesn't stop
VS from removing them. As to why it doesn't remove the last one, it's just
one of those 100's of quirks. At least it's better than front page.


[quoted text, click to view]

Nathan Sokalski
9/16/2005 5:37:25 PM
I have a section in my ASP.NET code where I have an HTML unordered list.
Visual Studio keeps removing the closing list item tags, except for the last
list item. In other words, Visual Studio makes my code look like the
following:

<ul>
<li>adasf
<li>asdfsa
<li>asdfd
<li>adfsdf</li>
</ul>

First of all, it really annoys me that it removes the closing tags at all,
but why does it remove all but the last one? Any ideas would be appreciated.
Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

Scott M.
9/16/2005 10:14:51 PM
Check the schema that the document is set to be compliant with. This
determines how VS .NET will write the HTML for you.


[quoted text, click to view]

AddThis Social Bookmark Button