Opened 12 years ago

Closed 12 years ago

#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


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="'6em';"></textarea>

<textarea onfocus="return expandTA(this);"></textarea>

<textarea id="expandme">

onFocus added after page load via javascript DOM


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 (4)

comment:1 Changed 12 years ago by guest

  • Milestone changed from 2.0 to 0.96

comment:2 Changed 12 years ago by ray

I have recreated your testcase under and I have no problem with this.

Could you please test this page in your browser and report back?

comment:3 Changed 12 years ago by guest

Thank you for the testing this issue so thoroughly. The page offered above worked without issue.

Looking at my own page, it appears that I have a slightly lower revision install, so I'm going to upgrade and retest. I'll update the ticket with those results.

comment:4 Changed 12 years ago by douglas

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.