From: Brad C. <yo...@br...> - 2004-10-14 15:39:12
|
More IE specific stuff :) http://msdn.microsoft.com/workshop/author/behaviors/reference/methods/ishomepage.asp Please log a bug (or submit a patch) and we'll get it implemented. Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > Reading the error, it is not the document.body that is having a problem. It > looks like it is trying to call a function called isHomePage() which may not > be defined. How are you defining it? I did not see it on the site when I > went looking for it. > > Chris Erskine > > EDS Consulting Services > F5-EDS-001 > 2424 Garden of the Gods Rd > Colorado Springs, CO 80919 > > Phone: 719-535-6064 > > Phone: > mailto:chr...@ed... > -----Original Message----- > From: Vinay Murthy [mailto:vin...@gm...] > Sent: Thursday, October 14, 2004 8:17 AM > To: htm...@li... > Subject: [Htmlunit-user] problem with javascript in Release 1.3-pre2 - > September 26, 2004 > > Hi, > I was using htmlunit to access the site "http://www.imdb.com". I got > an exception trace which looked like this : > > EcmaError: lineNumber=[5] column=[0] lineSource=[ > ishp=(document.body.isHomePage(us) || > document.body.isHomePage(us+'/'));] name=[TypeError] > sourceName=[Embedded script] message=[undefined is not a function.] > errorObject=[TypeError: undefined is not a function.] > com.gargoylesoftware.htmlunit.ScriptException: undefined is not a function. > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript > Engine.java:264) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(Html > Page.java:702) > at > com.gargoylesoftware.htmlunit.ScriptFilter.executeScript(ScriptFilter.java:2 > 74) > at > com.gargoylesoftware.htmlunit.ScriptFilter.endElement(ScriptFilter.java:233) > at org.cyberneko.html.HTMLTagBalancer.callEndElement(Unknown Source) > at org.cyberneko.html.HTMLTagBalancer.endElement(Unknown Source) > at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(Unknown > Source) > at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) > at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) > at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP > arser.java:279) > at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC > reator.java:110) > at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat > or.java:82) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 > 69) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:536) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:454) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:326) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:270) > at > com.trilogy.quickstart.htmlunit.test.TestIMDB.testSubscription(TestIMDB.java > :38) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > It is due to the use of document.body ? I noticed there's a bug > relating to document.body fixed in the existing version of htmlunit. I > should also mention that in the case of imd.com, the use of > document.body is within <body></body> > > Regards > Vinay > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |