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: Tue Apr 11 2006 - 12:29:47 CEST

Clément wrote:

> 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"

Weird. But .innerHTML is proprietary, so one should not expect consistent
results.
 
> 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.

The are dozens of versions of Mozilla (Seamonkey) and Netscape (Navigator).
None of my innerHTML-capable Mozilla browsers[1] does show such a behavior.
Which ones have you tested with (Help, About)?

The code you posted is insufficient for problem analysis. Please post the
public URL of a test case. (Maybe in creating that test case, you will
find the problem yourself.)

Please quote what you are replying to, as customary on Usenet.[2][3]

PointedEars
___________
[1] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205
    Debian/1.7.12-1.1

    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040805
    Netscape/7.2

    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508
    Netscape6/6.2.3
    
[2] <URL:http://www.safalra.com/special/googlegroupsreply/>

[3] <URL:http://jibbering.com/faq/faq_notes/pots1.html>
    news:1214362.kshuYpAZNN@PointedEars.de
Received on Mon May 1 04:54:54 2006