[thelist] IE LI UL DOM problem

apathetic apatheticgenius at gmail.com
Mon Nov 29 11:55:21 CST 2004


On Mon, 29 Nov 2004 18:18:01 +0100, Andreas Wahlin
<andreas.wahlin at ufl.gu.se> wrote:
> <ul>
> <li id="1">text</li>
> <ul id="2">
> <li>next level</li>
> </ul>
> <li id="3">first level again</li>
> </ul>

Well, I haven't tested a solution to your problem, but the above is
invalid HTML.  UL can only have LI elements as children.  The
following is how you should structure your list for HTML
compatibility:

<ul>
    <li id="1">text
        <ul id="2">
            <li>next level</li>
        </ul>
    </li>
    <li id="3">first level again</li>
</ul>

Tim


-- 
http://www.apatheticgenius.com/

http://elaborate.sourceforge.net/ - PHP/MySQL wiki engine
http://www.hyperlinkage.com/ - Online RSS reader


More information about the thelist mailing list