I was surprised by the behavior by a UiBinder implementation from
GWT.create(). It may be that this is not a "bug report", but rather a
"feature request".

I am trying to use the tag parameter of HTMLPanel. It seems to work
for many tags, but not TD. This test will demonstrate.
I set a breakpoint on HTMLPanel(String html) and observe the parameter
html.

*** Test1 ***
<g:HTMLPanel>
        <ul> <li> item 1</li> <g:HTMLPanel tag="li"> </g:HTMLPanel> </ul>
</g:HTMLPanel>
Expected html:
<ul> <li> item 1</li> <li id='gwt-uid-1'></li> </ul>
Actual html:
<ul> <li> item 1</li> <li id='gwt-uid-1'></li> </ul>

Results: pass

*** Test2 ***
<g:HTMLPanel>
    <table><tr> <td> cell 1</td><g:HTMLPanel tag="td"> </g:HTMLPanel>
</tr> </table>
</g:HTMLPanel>

Expected html:
<table><tr> <td> cell 1</td><td     id='gwt-uid-1'></td>   </tr> </
table>

Actual html:
<table><tr> <td> cell 1</td><span id='gwt-uid-1'></span> </tr> </
table>

Results: fail

The first test shows that LI is converted to an LI as expected. A
similar test shows that TR behaves as expected.
Shouldn't a TD be converted to a TD?

-- 
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.

Reply via email to