Ticket #1273 (closed defect: worksforme)
IE 6/7 onFocus browser crash
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.96 |
| Component: | Browsers_InternetExplorer | Version: | trunk |
| Severity: | blocker | Keywords: | onfocus |
| Cc: |
Description
When using Xinha on page in Internet Explorer 6 and 7, other elements that use an onFocus event cause the browser to freeze completely. The code works without issue in Firefox 2/3, Opera, Google Chrome and Safari. Example code (this code is on the page outside of Xinha, 3 tested variations):
<textarea onfocus="this.style.height='6em';"></textarea>
<textarea onfocus="return expandTA(this);"></textarea>
<textarea id="expandme">
onFocus added after page load via javascript DOM
</textarea>
Removing Xinha from the page allows the code examples to work as expected. Theories:
- A global onFocus event listener is catching this event because is tied to a textarea. Perhaps the listener filter needs to further defined or evaluated.
- The code above causes the page length to increase slightly, which may in turn trigger a window.onresize event which is then causing the hang. However, I tested this and lengthening a page does not trigger that event when put in the body tag. But perhaps the event listener is on a higher level than that.
Change History
Note: See
TracTickets for help on using
tickets.
