Closed (fixed)
Project:
External Links
Version:
5.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2009 at 15:26 UTC
Updated:
21 Jan 2010 at 15:40 UTC
After installing the upgrade IE7 reported an error in line 40 in jQuery, which corresponds to a filter function -- in the below code the line if(m[1]==":"&&m[2]=="not")r=jQuery.filter(m[3],r,false).r, debugging reports that m is null and t was ".0,.0".
filter:function(t,r,not)
{
var g=not!==false?jQuery.grep:function(a,f)
{
return jQuery.grep(a,f,true)
};
while(t&&/^[a-z[({<*:.#]/i.test(t))
{
var p=jQuery.parse;
for(var i=0;i<p.length;i++)
{
var re=new RegExp("^"+p[i].replace("S","([a-z*_-][a-z0-9_-]*)"),"i");
var m=re.exec(t);
if(m){if(!i)m=["",m[1],m[3],m[2],m[5]];
t=t.replace(re,"");
break
}
}
if(m[1]==":"&&m[2]=="not")r=jQuery.filter(m[3],r,false).r;
else
{
var f=jQuery.expr[m[1]];
if(f.constructor!=String)f=jQuery.expr[m[1]][m[2]];
eval("f = function(a,i){"+(m[1]=="@"?"z=jQuery.attr(a,m[3]);":"")+"return "+f+"}");
r=g(r,f)
}
}
return{r:r,t:t}
}
I disabled my own jQuery functions, Google Analytics, and the problem persisted. It went away after rolling back to 5.x-1.6. Other Javascript-dependent modules installed include tinymce. Thanks!
Comments
Comment #1
quicksketchThe Drupal 5 version of this module is no longer supported.
Comment #2
amaria commentedTo fix this, download the jquery_update module which will replace the jquery.js that comes with Drupal, with a more recent version.