Public bug reported: libjs-jquery 1.6.2-1ubuntu1 in oneiric introduced a regression compared to 1.6.1-1ubuntu1.
/usr/share/javascript/jquery/jquery.min.js contains 2 syntax errors, breaking all my webapps using jquery. The original code shows: /usr/share/javascript/jquery/jquery.js: ====== 6839 serializeArray: function() { 6840 return this.map(function(){ 6841 return this.elements ? jQuery.makeArray( this.elements ) : this; 6842 }) 6843 .filter(function(){ 6844 return this.name && !this.disabled && 6845 ( this.checked || rselectTextarea.test( this.nodeName ) || 6846 rinput.test( this.type ) ); 6847 }) 6848 .map(function( i, elem ){ 6849 var val = jQuery( this ).val(); 6850 6851 return val == null ? 6852 null : 6853 jQuery.isArray( val ) ? 6854 jQuery.map( val, function( val, i ){ 6855 return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; 6856 }) : 6857 { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; 6858 }).get(); 6859 } 6860 }); ==== in the minified versions, the replace strings of lines 6855 & 6857 are turned into "^Q " leading to syntax errors in Chromium & Firefox. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: libjs-jquery 1.6.2-1ubuntu1 [modified: usr/share/javascript/jquery/jquery.min.js] ProcVersionSignature: Ubuntu 3.0.0-5.6-generic 3.0.0-rc7 Uname: Linux 3.0.0-5-generic i686 NonfreeKernelModules: nvidia Architecture: i386 Date: Sat Jul 16 13:24:15 2011 Dependencies: PackageArchitecture: all ProcEnviron: PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/usr/bin/tcsh SourcePackage: jquery UpgradeStatus: Upgraded to oneiric on 2011-05-09 (68 days ago) ** Affects: jquery (Ubuntu) Importance: High Status: New ** Tags: oneiric regression ** Changed in: jquery (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/811477 Title: [regression] syntax error in minified version of jquery To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/jquery/+bug/811477/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs