Re: List Item closing tag is removed

  •  09-28-2007, 5:50 AM

    Re: List Item closing tag is removed

    Here we go again...

    I've got another problem with the way the editor is creating the xhtml for lists:

    This time the problem is with nested lists. When I first create a a nested list this is the code that is saved:

    <ul>
        <li>Some text 1</li>
        <li>More Text</li>
        <ul>
           <li>This is the nesed list</li>
           <li>More Text</li>
        </ul>
        <li>Final  bit of text</li>
    <ul>


    When I use the XHTML Property sever side it does not change. I think that because all the closing tags are there that it does no  correction. This is not valid xhtml.

    If I reopen the document back into the editor it renders without closing li tags as before.

    This time the XHTML Property knows that it needs to put in closing tags, and this time it is correct. eg

    <ul>
        <li>Some text 1</li>
        <li>More Text
            <ul>
               <li>This is the nesed list</li>
               <li>More Text</li>
            </ul>
        </li>
        <li>Final  bit of text</li>
    <ul>


    Can a fix be put into place to correct the xhtml on the first save, without having to reopen the document and save it again?

    Thanks in advance.
View Complete Thread