Problem with XHTML output

  •  04-07-2005, 10:28 AM

    Problem with XHTML output

    I've been trying out the outputs from the editor, and testing the Xhtml compliance.

    When using indenting ordered or unordered lists the xhtml generated is not compliant.  The code generated is shown below:

    <ul>
        <li>Item A</li>
        <li>Item B</li>
        <ul>
            <li>Sub Item B 1</li>
            <li>Sub Item B 2</li>
            <li>Sub Item B 3</li>
        </ul>
        <li>Item C</li>
    </ul>

    Although this code will display in IE6 correctly, it fails the W3C xhtml validator.

    The correct way for this to be coded would be for the sub list to be nested within the <li></li> tag is belongs to (shown below)

    <ul>
        <li>Item A</li>
        <li>Item B
            <ul>
                <li>Sub Item B 1</li>
                <li>Sub Item B 2</li>
                <li>Sub Item B 3</li>
            </ul>
        </li>
        <li>Item C</li>
    </ul>

    I just want to check that this problem is not caused by my test setup, although the problem is also evident in the XHTML compliant demo that is available on the website.

    Any feedback on this issue would be appreciated
View Complete Thread