logo       

[HtmlUnit] [ htmlunit-Bugs-1459704 ] adEventListener method not recognized : msg#00066

java.htmlunit.devel

Subject: [HtmlUnit] [ htmlunit-Bugs-1459704 ] adEventListener method not recognized by JS engine

Bugs item #1459704, was opened at 2006-03-27 16:24
Message generated for change (Settings changed) made by hiren21
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1459704&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
>Priority: 7
Submitted By: hiren (hiren21)
Assigned to: Nobody/Anonymous (nobody)
Summary: adEventListener method not recognized by JS engine

Initial Comment:
Seems like the current implementation of javascript
engine does not recognize the addEventListener method
for javascript:

[java] 1) testWelcomePage
(com.ofoto.htmlunit.WelcomePageTest)======= EXCEPTION
START ========
[http://www.xxx.com/javaScript/third_party/findmetrics/
something.js?_version=1159845686] message=[TypeError:
Cannot find function addEventListener.
[java]
com.gargoylesoftware.htmlunit.ScriptException:
TypeError: Cannot find function addEventListener.
[java] at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngi
ne.execute(JavaScriptEngine.java:253)
[java] at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExterna
lJavaScriptFile(HtmlPage.java:771)
[java] at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeSc
riptIfNeeded(HtmlScript.java:188)
[java] at
com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeA
dded(HtmlPage.java:1387)
[java] at
com.gargoylesoftware.htmlunit.html.DomNode.appendChild
(DomNode.java:470)


Source:
if(!lnk.cM4){lnk.addEventListener("click",cW,false)

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1459704&group_id=47038


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise