From: Mike B. <mb...@Ga...> - 2003-03-25 18:44:31
|
Mabel Chow wrote: > My nested table was not well-formed. I forgot to add > a <tr> for my <td> tags. Is there any way of telling htmlunit to be > forgiving of malformed html? Thanks to NekoHTML, it's actually very forgiving of malformed html. It may be that in this particular case NekoHTML guessed wrong when trying to figure out what you'd really meant. Once you've loaded your HtmlPage, if you call page.asXml() you'll get a string containing the document *after* NekoHMTL has cleaned it up. If you compare this version to the content actually returned from the server then you can see what Neko has done. The original html can be retrieved with page.getWebResponse().getContentAsString(). -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |