#606 ✓resolved
Bryan Larsen

Element.prototype.childWithClass= fails in IE7

Reported by Bryan Larsen | January 16th, 2010 @ 08:46 PM

Bryan M wrote

The following is no good in IE7

Element.prototype.childWithClass = function(klass) {
   [ . . . ]

}

I got it to work by replacing with this:

Element.Methods.childWithClass = function(el, klass) {
    var ret=null;
    el.childElements().each(function(el2) {
        if(ret==null && el2.hasClassName(klass)) ret=el2;
    });
    return ret;

}

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 »

People watching this ticket

Referenced by

Pages