CODEDIGEST
Home » FAQs
Search
 

Technologies
 

Why do some of the characters in DIV tag gets repeated in IE 6.0 ?
Submitted By Satheesh Babu B
On 2/5/2009 9:39:22 AM
Tags: Interview Questions,HTML,bug  

Why do some of the characters in DIV tag gets repeated in IE 6.0 ?

 

We use DIV tags extensively to design the UI of our webapplications. There will be situations where we will use only div tags to align the controls and prevent the usages of table tags. In this scenario, to align the DIV tag we will use float css style, for example: float:left;

 

There is a known bug in IE 6.0 where some of the characters in the div tag will get repeated at the end if we use HTML comments between the div tags that have float styles applied.

 

Read more about it here,
http://www.positioniseverything.net/explorer/dup-characters.html

 

To fix this, you can either remove the HTML comments or you can follow the below syntax for commenting.
<!--[if !IE]>Comments go here..<![endif]-->

 

 

Recent FAQs
  • View All FAQs..