Laurent Foret wrote:

> It works fine, thanks ,
> But if the Element is the root of the Document What is the parent?
>

The document would be the parent. In this case, you should switch the last
two lines like this:

     parent.removeChild(el);
     parent.insertBefore(nel, null);

Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to