cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <...@apache.org>
Subject Re: Manipulating the DOM in flowscript
Date Fri, 26 Nov 2004 13:23:21 GMT
Il giorno 26/nov/04, alle 13:45, Derek Hohls ha scritto:

> is valid, but a call like:
>     var keyNode = document.firstChild.firstChild;
>     if (keyNode != null) {
>       document.insertBefore(keyNode,keyNode);
>     }
>
> gives an error for the insert operation.
> org.w3c.dom.DOMException: NOT_FOUND_ERR:
> An attempt is made to reference a node in a context where it does not
> exist.

I think the DOM does not like inserting a node before itself. It does 
not make a lot of sense to me either ;). Anyway, this is a problem with 
the DOM API, not with flowscript or Cocoon.

	Ugo

-- 
Ugo Cei - http://beblogging.com/

Mime
View raw message