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: Clément <cthomas03@gmail.com>
Date: Tue Apr 11 2006 - 11:11:13 CEST

All the margin and padding values are set to 0px.
And actually, everytime I execute the function, the display change!
so it is like ...

original page
=> "something"
test.innerHTML = "something else"
=> "
      something else"
test.innerHTML = "something else"
=> "

      something else"
test.innerHTML = "something else"
=> "

      something else"

I cheked the code in the innerHTML, with the function alert.
And there is another problem.
In fact, when I do :
test.innerHTML =
'<div><table><tr><td>something</td></tr></table></div>'
The result is weird, because I check the code with an alert and I get
...
alert(test.innerHTML);
=>'<div></div><table><tr><td>something</td></tr></table>'

Why does Mozilla do that?? Apparently, Netscape does the same.
Received on Mon May 1 04:54:45 2006