Solved

html DOM in IExplorer and Firefox

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

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 …
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

690 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