[Webtest] [webtest][JIRA] Closed: (WT-261) window.event.srcElement -- clickButton TypeError: Cannot read property "srcElement"

Marc Guillemot (JIRA) Marc Guillemot (JIRA)" <noreply@canoo.com
Thu, 12 Apr 2007 10:26:45 +0200 (CEST)


     [ http://webtest-community.canoo.com/jira/browse/WT-261?page=all ]
     
Marc Guillemot closed WT-261:
-----------------------------

    Fix Version: 2.5
     Resolution: Fixed

Was fixed in htmlunit 1.11

> window.event.srcElement -- clickButton TypeError: Cannot read property "srcElement"
> -----------------------------------------------------------------------------------
>
>          Key: WT-261
>          URL: http://webtest-community.canoo.com/jira/browse/WT-261
>      Project: WebTest
>         Type: Bug

>     Versions: 2.1
>  Environment: using Kubuntu, java version "1.5.0_06", Apache Ant version 1.6.5 compiled on June 2 2005, actual sources, actual htmlunit-sources
>     Reporter: Michael Habbert
>     Assignee: Marc Guillemot
>      Fix For: 2.5
>  Attachments: checkForSrcElement.html, checkForSrcElement.xml
>
> I prepared some example files: one html-file with the relevant java-script inside and a testfile.
> Hopefully you will not have to adjust to much to prey on it.
> function getTarget(evt) {
>     alert( "getTarget is called" );
>     if(evt.srcElement) 
>         return evt.srcElement;
>     else 
>         return evt.target;
> }
> The html-page with the JavaScript is running with firefox and IE6.0 (under linux) and with IE 6.0 under windows.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira