Why setHTML("<table><tr>..</tr></table>"); but then getHTML(); return "<table><tbody><tr>..</tr></tbody></table>" (Gwt)? -


i don't understand how gwt sethtml & gethtml work. doesn't seem consistent.

let see 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 set html myinlinehtml don't have <tbody></tbody>, when gethtml myinlinehtml gwt include <tbody></tbody>.

why that's happen because can confusing when want html value , thought has same value time set hasn't?

does happen independently browsers or dpendently browsers? cos serious.

this how html parsed (how browsers expected parse it).

in html 4, table defined (in terms of sgml) requiring tbody child element, , tbody defined both start , end tags being optional.

in html5 (which codifies how browsers parse html), same: when building table, if browser finds tr, inserts tbody element before parsing tr if there tbody initially.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -