From: Mabel C. <mc...@ya...> - 2003-03-24 19:41:37
|
Mike, thanks for the previous bug fixes. I just got the latest version of the code from cvs today. I ran into another problem with using document.all.tags(). I get a "undefined is not a function", which is referring to tags(). So, the tags method is not supported? I have this small html page. <html> <body> <DIV id='ARSMenuDiv0'></DIV> <script language='Javascript'> var divObj = document.all.tags("div"); </script> </body> </html> Also, I ran into another variation of the problem, when my html contains nested tables (see below). I get an exception com.gargoylesoftware.htmlunit.ScriptException: specified cell could not be found in table <html> <body> <TABLE> <TR> <TD> <div id="DF2"> <table> <td> Submitter</td> <td width="164"> <input type="text" id="F2" name="F2"> </td> </table> </div> </TD> </TR> </TABLE> <script language='Javascript'> var divObj = document.all.tags("div"); </script> </body> </html> __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
From: Mike B. <mb...@Ga...> - 2003-03-25 02:32:54
|
Mabel Chow wrote: > I ran into another problem with using > document.all.tags(). I get a "undefined is not a function", which is > referring to tags(). So, the tags method is not supported? It wasn't but I've added support for that now. > Also, I ran into another variation of the problem, when my html > contains nested tables (see below). I get an exception > com.gargoylesoftware.htmlunit.ScriptException: specified cell could > not be found in table I'm not exactly sure what's causing this one. Let me know if the tags() support that I've added fixes this one as well. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mabel C. <mc...@ya...> - 2003-03-25 18:05:10
|
Thanks for adding tags() support. The other variation error was an error on my part. 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? --- Mike Bowler <mb...@Ga...> wrote: > Mabel Chow wrote: > > I ran into another problem with using > > document.all.tags(). I get a "undefined is not a function", which > is > > referring to tags(). So, the tags method is not supported? > > It wasn't but I've added support for that now. > > > Also, I ran into another variation of the problem, when my html > > contains nested tables (see below). I get an exception > > com.gargoylesoftware.htmlunit.ScriptException: specified cell > could > > not be found in table > > I'm not exactly sure what's causing this one. Let me know if the > tags() > support that I've added fixes this one as well. > > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : mb...@Ga... > Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > HtmlUnit-develop mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-develop __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |
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 |