#944 ✓resolved
Bryan Larsen

prototype.js Element.select is not side effect free

Reported by Bryan Larsen | April 20th, 2011 @ 02:02 AM

I was doing some testing of hobo-jquery and I ran across a peculiar bug.

I instrumented it with this:

            alert(formlet.find("form :input").length);
            alert(formlet.find("form :input").length);
            alert(formlet.find("form :input").length);

On a page without any forms, it returned "5" the first two times, and returned "0" on the last.

I was able to get rid of it with the attached patch, which is completely unrelated and shouldn't have an effect on anything. It probably indicates a bug in prototype, but the latest version of prototype and lowpro do not fix the problem.

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 ยป

Attachments

Referenced by

Pages