Bug Tracker

Modify

Ticket #9664 (closed bug: invalid)

Opened 2 years ago

Last modified 21 months ago

jQuery minified package > 1.5.2 bug

Reported by: chris@… Owned by: chris@…
Priority: low Milestone: 1.next
Component: build Version: 1.6b1
Keywords: Cc:
Blocking: Blocked by:

Description

Just found an issue with the minified package > 1.5.2 where trying to call a function of the jQuery or $ object caused the following error from this call.

$.post('[script]',function(d){ $('#[id]').show(); });

by changing '$('#[id]').show();' to any jQuery function the following error occurs.

i.exec is not a function (jquery-1.6.js line 16) (function(a,b){function cy(a){return f...h]&&f.event.trigger(c,d,b.handle.elem

From testing the error seems to have started with version 1.6 min.

1.5.2 min - OK, uncompressed - OK 1.6 min - Fail, uncompressed - OK 1.6.1 min - Fail, uncompressed - OK

Browser FF 3.6.18 OS Win7 64

Change History

comment:1 Changed 2 years ago by timmywil

  • Owner set to chris@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to build

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on  http://jsfiddle.net that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

comment:2 Changed 23 months ago by labraceta@…

Hi,

This happens to me too. With jQuery 1.6.1 min and 1.6.2 min.

Firefox 3.6

Thanks

comment:3 Changed 23 months ago by rwaldron

$('#[id]')

This type of id selector is not yet supported by jQuery.

Also, from the information I've been given from Mozilla, Firefox 3.6 is very close to End Of Life, so it doesn't make sense to write code that is tailored to a specific browser

comment:4 Changed 23 months ago by trac-o-bot

  • Status changed from pending to closed
  • Resolution set to invalid

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

comment:5 follow-up: ↓ 6 Changed 22 months ago by anonymous

I've posted an answer in a similar ticket: http://bugs.jquery.com/ticket/9805#comment:3

You probably use a global variable named "i".

"Also, from the information I've been given from Mozilla, Firefox 3.6 is very close to End Of Life, so it doesn't make sense to write code that is tailored to a specific browser"

Almost 10% of the users still use Firefox  http://gs.statcounter.com/#browser_version-ww-monthly-201108-201108-bar so it does make sense to write code that works with this browser.

comment:6 in reply to: ↑ 5 ; follow-up: ↓ 7 Changed 21 months ago by Vadim

You probably use a global variable named "i".

Right! But not global. In the "for" loop, I've been using "i" as name for iteration variable. Changing it to (for example) "iterator" - solves the problem.

comment:7 in reply to: ↑ 6 Changed 21 months ago by anonymous

My mistake, yep it was global :(

comment:8 Changed 21 months ago by william_notsolikingjquery

maybe I have a global "i" or not - who cares? going to uncompressed version fixes the problem that started for me after upgrading to 1.6.2-min

each upgrade i do to jquery breaks SOMETHING for SOMEONE

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.