I don't understand how Gwt setHTML & getHTML work. It doesn't seem to be 
consistent.

Let see this example:

myInlineHtml.setHTML(SafeHtmlUtils.fromSafeConstant("<table><tr><td>Test</td></tr></table>"));
System.out.println(myInlineHtml.getHTML());

Output: "<table><tbody><tr><td>Test</td></tr></tbody></table>"

Clearly when we set the html for myInlineHtml we don't have <tbody></tbody>, 
but when we getHTML from myInlineHtml then Gwt include <tbody></tbody>.

Why that's happen cos it can cause the confused when you want to get Html 
value & u thought it has the same value I the time we set it but it hasn't?


also:  
http://stackoverflow.com/questions/22895956/why-sethtmltabletr-tr-table-but-then-gethtml-return-tablet

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to