On Wednesday, July 24, 2013 11:07:42 AM UTC+2, Jens wrote:
>
>
> I think you just can't do such a thing (using 'tr' as the tag)
>>
>> The problem is that when parsing <tr><td><span 
>> id='gwt-uid-67-></span></td></tr> as innerHTML, the <tr> and <td> and 
>> simply dropped, so the HTMLPanel's root element actually becaomes the <span 
>> id='gwt-uid-67'>.
>>
>> Try it for yourself: http://jsfiddle.net/7FhnW/
>>
>
> But if the <span id='gwt-uid-xxxx'> elements are preserved why does 
> LazyDomElement can't find them via Document.get().getElementById()?
>

Here we'd have multiple spans so the temporary <div> would contain "<span 
id='gwt-uid-1'></span><span id='gwt-uid-2'></span>…" and then the HTMLPanel 
constructor uses getFirstElementChild() on the div to use as the panel's 
root element, so the HTMLPanel's root element ends up being the first 
<span> (rather than the <tr>) and the other spans are 
ignored/forgotten/garbage-collected.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to