|
[HtmlUnit] [ htmlunit-Feature Requests-1202678 ] Javascript Focus Change is: msg#00060java.htmlunit.devel
Feature Requests item #1202678, was opened at 2005-05-16 01:12 Message generated for change (Comment added) made by yourgod You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=1202678&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: pradeep (ppachan) Assigned to: Nobody/Anonymous (nobody) Summary: Javascript Focus Change issue Initial Comment: Goal: In general, Javascript is able to freely change focus to various fields, even when called from another frame. In the submitted example, a newly loaded page in an IFRAME tries to change focus on the original parent page. HTMLUnit should be able to correctly report at any time the field with the current focus. onLoad of index.html text1 has the focus. Moving focus to text2, will cause an iframe SRC refresh, which will cause the focus to jump to text3. Currently HtmlUnit does not seems to detect / report this correctly Sample Test Case with files attached. Index.html is the main html file. JSFocusChangeTest.java is the testcase. All files goes to C:\webapp. Tried with 1.5 and 1.6 versions of HtmlUnit. ---------------------------------------------------------------------- >Comment By: Brad Clarke (yourgod) Date: 2006-03-23 20:37 Message: Logged In: YES user_id=257129 The issue is that the focused element is saved at the WebClient level instead of the WebWindow level, meaning you loose the focused element if you open a new window. The discribed problem with iframes should work the same way, since they are basicly embedded windows. ---------------------------------------------------------------------- Comment By: Marc Guillemot (mguillem) Date: 2005-05-16 09:15 Message: Logged In: YES user_id=402164 Can you reformulate your test as a unit test using MockWebConnection like htmlunit's tests. It would be easier for me first to understand the problem and second to incorporate the test in htmlunit. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=1202678&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-1309064 ] JavaScript Undefined, SourceForge.net |
|---|---|
| Next by Date: | [HtmlUnit] [ htmlunit-Feature Requests-1204628 ] implement XMLHttpRequest.overrideMimeType, SourceForge.net |
| Previous by Thread: | [HtmlUnit] [ htmlunit-Bugs-1309064 ] JavaScript Undefined, SourceForge.net |
| Next by Thread: | [HtmlUnit] [ htmlunit-Feature Requests-1204628 ] implement XMLHttpRequest.overrideMimeType, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |