Running the compiled code and the hand-made code the desired effect happens (black background with white square).
I tested on Chrome 6 and FF 3.6.6 The only thing to notice is that i placed the code before the body tag, the html that i used was: <html> <head><title>Teste</title></head> <body> </body> <script type="text/javascript"> $doc = document; document_0 = $doc; body = document_0.body; body.setAttribute('bgcolor', 'black'); ele = document_0.createElement('div'); ele.innerHTML = '<div style="z-index: 0;position: absolute;left: 0px;top: 0px;width: 100px;height: 100px;overflow: hidden;background-color: rgb(255, 255, 255);"><\/div>'; body.appendChild(ele); </script> </html> If I place the code before the body the code don't work, but this is expected since the browser execute the code when it reads the code, and placing it before the body, the browser still don't know about the body tag. Maybe this can help, since it work on hosted mode and only breaks on compiled mode, this probably is a loading problem. Hope it helps. -- André Moraes Analista de Desenvolvimento de Sistemas andr...@gmail.com http://andredevchannel.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.