The error is:

Uncaught exception in 
http://localhost:8888/bla/0B85277F02991E2394B9BF24DE3642D0.cache.html:1366
      throw com_google_gwt_xml_client_impl_DOMNodeException_
$DOMNodeException__Lcom_google_gwt_xml_client_impl_DOMNodeException_2SLjava_lang_Throwable_2Lcom_google_gwt_xml_client_impl_DOMItem_2
(new com_google_gwt_xml_client_impl_DOMNodeException(), e, this
$static);

Uncaught [object Object]


root.getOwnerDocument() does not contain adoptNode.
the Node class I am using is com.google.gwt.xml.client.Node;
There is a method on OwnerDocument called importNode but it does not
change anything, the error is the same.

By the way I am using latest gwt 1.7 (older versions would not work
either)
It seems that safari is not working also (could it be due to webkit?
it's the only thing I can think that's relevant and is used by Chrome
and Safari)


On Jul 21, 11:10 pm, Thomas Broyer <[email protected]> wrote:
> On 21 juil, 20:28, mihai007 <[email protected]> wrote:
>
> > The following code works as expected in IE7/8, Firefox, Opera, but
> > fails on chrome:
>
> > Node root = XMLParser.parse("<?xml version='1.0' ?><root 
> > />").getLastChild();
>
> > Node node = XMLParser.parse("<?xml version='1.0' ?><node 
> > />").getLastChild();
>
> > root.appendChild(node);
>
> > Does anyone have a clue why is it happening and any workarounds? thank
> > you.
>
> Any error showing in the JS console?
>
> Shouldn't you first adoptNode (root.getOwnerDocument().adoptNode
> (node)) before appending it into another document?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to