innerHTML problem?

Tobias Anton TA at ESC-Electronics.de
Fri Sep 3 16:04:59 BST 2004


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.

-- Tobias




More information about the kfm-devel mailing list