innerHTML problem?

David Faure faure at kde.org
Thu Sep 2 17:05:52 BST 2004


On Thursday 02 September 2004 18:06, Leo Savernik wrote:
> Am Donnerstag, 2. September 2004 16:14 schrieb David Faure:
> > On Tuesday 31 August 2004 15:42, Martin Jordan wrote:
> > > hi there,
> > >
> > > shouldn't document.getElementById( ... ).innerHTML grant access to the
> > > inner value of the html-tag and not to the whole itself?
> >
> > Indeed.
> >
> > Here's a patch that fixes it for your testcase (mostly taken from
> [...]
> 
> Here's a simpler patch. Please review.

Hmm, indeed. Any idea why innerText() does it the complex way?
It seems that for an element without children it's going to get the text of the
next sibling, which sounds broken...

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list