On 2 juil, 23:14, grasshopper <[email protected]> wrote:
> Hello all,
>
> I am currently using the following method to get the html of an
> element: container.getElement().getString()
>
> This is returning the html of the element, but it's not valid html. In
> example:
> <TABLE style="WIDTH: 95%" class=contentPanel cellSpacing=0
> cellPadding=0><TBODY>
> <TR>
> <TD style="VERTICAL-ALIGN: top" align=left>
> <TABLE style="WIDTH: 100%" class=contentTitlePanel cellSpacing=0
> cellPadding=0>
> <TBODY>
>
> notice that some of the attributes have missing  quotes.
>
> How can I get a component's/element't valid html???

It *is* valid HTML ! HTML explicitly allows some attribute values to
be unquoted.

You probably want XML instead. You can either use some server-side
tool to turn HTML into XHTML (HTML Tidy, Validator.nu's HTMLParser,
html5lib in Python or Ruby, etc.) or build XML on the client-side
using com.google.gwt.xml.*
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to