logo       

[HtmlUnit] [ htmlunit-Feature Requests-1459704 ] addEventListener method no: msg#00074

java.htmlunit.devel

Subject: [HtmlUnit] [ htmlunit-Feature Requests-1459704 ] addEventListener method not recognized by JS engine

Feature Requests item #1459704, was opened at 2006-03-27 18:24
Message generated for change (Settings changed) made by yourgod
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448269&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
Priority: 7
Submitted By: hiren (hiren21)
Assigned to: Nobody/Anonymous (nobody)
Summary: addEventListener 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)

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

Comment By: Marc Guillemot (mguillem)
Date: 2006-03-28 01:22

Message:
Logged In: YES
user_id=402164

Yop, addEventListener isn't implemented yet.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448269&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