Solved

html DOM in IExplorer and Firefox

Posted on 2006-06-19
2
530 Views
Last Modified: 2013-11-19
This simple code produces 2 different DOMs in firefox and internet explorer...

<body>
<ul>
      <li>test</li>
      <ul>
            <li>test2</li>
      </ul>
</ul>
</body>

in IE, it nests the second UL as a child of the LI above it...
but in firefox, the first UL has 2 children LI, and UL, and the UL is not a child of the LI, but a child of the UL.

I would like the IE DOM to do the same as the firefox DOM... any ideas?
0
Comment
Question by:edkim80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
OliWarner earned 250 total points
ID: 16939147
That's happening because the only thing that can be a child of a ul or an ol is a li. You need to put the child ul inside the li... like so:
<ul>
       <li>test
             <ul>
                    <li>test2</li>
             </ul>
       </li>
</ul>
0
 
LVL 8

Author Comment

by:edkim80
ID: 16942738
Ahh ok. bummer... thanks for the help
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question