[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error when cloning DOM nodes



On Thu, 09 Nov 2000, Michael Keuchen wrote:
> Hi!
> When executing cloneNode for an ozone DOM element (stored in a
> LocalDatabase),
> the following error is thrown:
> 
> DOMException(11): DOMException: Exception reason is unspecified. (code
> 11)
> Argument 'into' not same type as this node.
> 
> This is because the _ownerDocument stored in ElementImpl is of the type
> DocumentImpl_Proxy.
> And the _ownerDocument creates an element of type ElementImpl_Proxy,
> which is different
> from ElementImpl.
> Is this a minor bug, or is there an achitectural error?

This additional type test is okay for an in-memory DOM. If the nodes are ozone
objects it always fails. I simply removed this code. See CVS.


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com