logo       

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

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-28 02:24
Message generated for change (Comment added) made by mguillem
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-29 19:56

Message:
Logged In: YES
user_id=402164

It will surely be implemented, the question is only when.
For my part I have an idea how I would implement it but
don't have currently time for it. Except if I need it for my
own use, I won't be able to fix it in the coming few weeks.

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

Comment By: hiren (hiren21)
Date: 2006-03-28 23:12

Message:
Logged In: YES
user_id=1465240

Is that something that would be implemented in an upcoming
patch or release?

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

Comment By: Marc Guillemot (mguillem)
Date: 2006-03-28 09: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