Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-05-08 06:38:05

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

setHTML function in IE

I've come across a case where the content before using:

this.setHTML(this.getHTML);

would not actually be the same afterwards...it seems to add random <p> </p> blocks, and in one case it has produced:

<p></span>
                                          <p> </p>
                                        </p>
                                        <p> </p>
                                      </p>
                                      <p> </p>
                                    </p>
                                    <p> </p>
                                  </p>
                                  <p> </p>
                                </p>
                                <p> </p>
                              </p>
                              <p> </p>
                            </p>
                            <p> </p>
                          </p>
                          <p> </p>
                        </p>
                        <p> </p>
                      </p>
                      <p> </p>
                    </p>
                    <p> </p>
                  </p>
                  <p> </p>
                </p>
                <p> </p>
              </p>
              <p> </p>
            </p>
            <p> </p>
          </p>
          <p> </p>
        </p>
        <p> </p>
      </p>
      <p> </p>
    </p>
    <p> </p>
  </p>
  <p> </p>

at the end of the document.

any thoughts what could be wrong?


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#2 2007-05-08 07:17:32

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: setHTML function in IE

not sure what the problem is now sad

tried

this._doc.body.innerHTML

and that does it too!

Are there any functions that get called when the contents are changed? or is this some wierd IE quirk?


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#3 2007-05-08 11:31:33

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: setHTML function in IE

nvm found accessing it via innerHTML of the body does ok


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

Board footer

Powered by FluxBB