|
[HtmlUnit] [ htmlunit-Feature Requests-1439904 ] Support for IE style event: msg#00059java.htmlunit.devel
Feature Requests item #1439904, was opened at 2006-02-27 22:00 Message generated for change (Comment added) made by mguillem You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=1439904&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: 5 Submitted By: Bradley Murray (specialbrad) >Assigned to: Marc Guillemot (mguillem) Summary: Support for IE style event handling (window.event) Initial Comment: IE handles events differently from firefox. In IE, the event is stored in window.event, where in firefox the event is passed as a parameter to the handler. IE passes a null in this parameter. The window.event object is described in the MSDN as per here http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_window.asp Work involved would be to register each event generated by clicks/keypresses and register it with a window. A call to window.event would get the most recent (current) event. ---------------------------------------------------------------------- >Comment By: Marc Guillemot (mguillem) Date: 2006-03-23 20:49 Message: Logged In: YES user_id=402164 I've adapted the unit test a bit and added it as notYetImplemented: EventTest.testEventTransmission. I couldn't fix it now because somehow the variable visibility was not exactly what I've expected. I have to take more time to check it. ---------------------------------------------------------------------- Comment By: Bradley Murray (specialbrad) Date: 2006-02-28 16:02 Message: Logged In: YES user_id=1269316 See here for a better description of the microsoft event handling way. http://www.quirksmode.org/js/events_access.html The event should be placed into window.event, and yes, internet passes a null as a parameter for an event handler. See patch for unit test. ---------------------------------------------------------------------- Comment By: Marc Guillemot (mguillem) Date: 2006-02-28 09:16 Message: Logged In: YES user_id=402164 What is currently wrong in htmlunit? If I correctly understand your description, when simulating IE: - event should be placed as window.event - no parameter should used for event handler call Is it correct? Can you provide a unit test? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=1439904&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> |
|---|---|---|
| Previous by Date: | [HtmlUnit] [ htmlunit-Bugs-1433566 ] Htmlunit as a maven 2.0 dependecies fails, SourceForge.net |
|---|---|
| Next by Date: | [HtmlUnit] [ htmlunit-Bugs-1309064 ] JavaScript Undefined, SourceForge.net |
| Previous by Thread: | [HtmlUnit] [ htmlunit-Feature Requests-1439904 ] Support for IE style event handling (window.event), SourceForge.net |
| Next by Thread: | [HtmlUnit] [ htmlunit-Patches-1420538 ] HtmlElement attributes whithout order, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |