#558 bug

IE crash on element.setStyle

Reported by garrett | February 19th, 2009 @ 11:37 AM

My Internet Explorer 6 crashed when element.setStyle was called by the scriptaculous SlideDown effect. The crash was caused by this line:

elementStyle[(property == 'float' || property == 'cssFloat') ?
            (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : 'styleFloat') :
              property] = styles[property];

I made following if statement around it:

if (styles[property] != null && styles[property] != '') {

which helped me out.

The interesting thing was when I added an alert above the problem line the crash didn't occur. I reckon this is some sort of race condition failure.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Referenced by