innerHTML problem?
David Faure
faure at kde.org
Fri Sep 3 15:12:07 BST 2004
On Friday 03 September 2004 17:04, Tobias Anton wrote:
> On Freitag, 3. September 2004 17:01, Tobias Anton wrote:
>
> > > It seems that for an element without children it's going to get the text
> > > of the next sibling, which sounds broken...
> >
> > Exactly. This line is missing:
> >
> <snip>
> >
> > One of the most frequent errors of iterative dom traversal algorithms :-)
>
> bullshit. The existing code above the loop:
>
> if(!firstChild())
> return text;
>
> does the same and exists already.
Oops, sorry.
--
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