Monday, November 9, 2009

Extra text in IE6

This error is IE6 specific, but may happen in IE7. If you've ever noticed extra text, or ghost text, which appears on your page, but is not in your HTML code, then this is that problem.
The issue arises when there is hidden inputs, or commented HTML tags within your code (around the area where the extra text is showing up).

The solution is to move (by shifting the node positions) the tags, or just removing them (the comments) completely if they are not needed.

I have to thank the people in this thread that addressed this issue. I doubt I would have been able to identify this problem without seeing that discussion.