Re: .innerHTML bug with mozilla/firefox (Ajax)
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: .innerHTML bug with mozilla/firefox (Ajax)

From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Mon Apr 10 2006 - 16:47:15 CEST

Clément wrote:

> I have a div called "test" like ...
> => "something"
> When I use test.innerHTML = "something else", I get ...
> => "
> something else"
> [...]

Why, `div' elements are block-level elements by default. So they may have
a (top) margin, and the parent block-level element may have a (top) padding.
If you do not want the padding or the margin (as defined in the basic
stylesheet), you have to set it to 0, using CSS.

That there is a padding or a margin is no bug at all.

PointedEars
Received on Mon May 1 04:53:22 2006