[ htmlunit-Bugs-1587110 ] click performed in wrong window

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ htmlunit-Bugs-1587110 ] click performed in wrong window

SourceForge.net
Bugs item #1587110, was opened at 2006-10-30 11:38
Message generated for change (Comment added) made by mguillem
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1587110&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: 5
Private: No
Submitted By: Andre Soereng (asoreng)
Assigned to: Nobody/Anonymous (nobody)
Summary: click performed in wrong window

Initial Comment:
Consider the following link:

<a href="X" onclick="window.open('', 'newWindow');">X</a>

Calling click on the element causes the following to
be logged by HtmlUnit:

"html.HtmlAnchor: do click action in window
'newWindow', using href 'X'"

The click action is wrongly performed in the
new window instead of the current one which hasn't
been replaced.


Another issue is when the onclick handler returns false:

<a href="X" onclick="window.open('', 'newWindow');
return false;">X</a>

Here, HtmlUnit wrongly returns the page in the new
window instead of the current one which hasn't been
replaced.



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

>Comment By: Marc Guillemot (mguillem)
Date: 2006-10-30 12:00

Message:
Logged In: YES
user_id=402164

I understand the problem explained in the second point but
not in the first one. Where does this log statement come from?

PS: any unit test?

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

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop