Solved

html DOM in IExplorer and Firefox

Posted on 2006-06-19
2
524 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

770 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