Hi Vic,

I have the same problem. If I change the generated JavaScript ($doc
with document_0 in your example) everything is fine. If you look over
the Document implementation you can see it creates new elements using
the host document. But this is wrong! If I call
myIFrameElement.getContentDocument().createLinkElement() I expect the
result element to have its ownerDocument equal to
myIFrameElement.getContentDocument() ..

It should at least import the created element in the document on which
we call createXXXElement() ..

Is this a known bug?
Marius

On Sep 22, 12:26 pm, Vic <[EMAIL PROTECTED]> wrote:
> I noticed that I have problem only on IE, with FF it works fine. I
> looked at generated javascript and saw strange code
>
> function onClick_10(sender){
>    var button, document_0;
>    document_0 = this.val$editor.element.contentWindow.document;
>    button = $doc.createElement(($clinit_6() , 'button'));
>    document_0.appendChild(button);
>
> }
>
> When GWTcreatenewelementit uses $doc instead of document_0, may be
> there is a problem -elementis created in one document but insterted
> to another?
--~--~---------~--~----~------------~-------~--~----~
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