TurboManage

David Chandler's Journal of Java Web and Mobile Development

  • David M. Chandler


    Web app developer since 1994 and former Developer Advocate with Google now residing in Colorado. Besides tech, I enjoy landscape photography and share my work at ColoradoPhoto.gallery.

  • Subscribe

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 241 other followers

  • Sleepless Nights…

    October 2009
    S M T W T F S
    « Sep   Nov »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Blog Stats

    • 857,849 hits

Don’t ever do this in GWT

Posted by David Chandler on October 16, 2009

		<div id="something" />

This cost me a night and a day in the deep. It seems to freak out the GWT DOM class such that subsequent calls to it for other IDs fail, in my case causing the screen to vanish entirely. This works fine:

		<div id="something"></div>
Advertisements

4 Responses to “Don’t ever do this in GWT”

  1. Matt Martin said

    Ya.. I’ve seen this before.. the same sort of thing happens with tags too.. so beware…

  2. David said

    Ahhmmm…
    Thanks for sharing, and this used to happen with IE (6?) with the
    tag.
    This is why we’re forced to the form:
    Makes no sense.

  3. David said

    What I wrote (and the parser killed) was:
    We are using the form

      

    .
    Rather than using

      

    entity, because IE (6?) had problems with this form.

  4. David said

    Ohhhh never mind – I just wrote about a self closing script tag – but the parser always drops it.
    Sorry for the spam.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: