[Bug 811477] Re: [regression] syntax errors in minified version of jquery
Launchpad Bug Tracker
811477 at bugs.launchpad.net
Sat Jul 30 00:40:11 UTC 2011
This bug was fixed in the package musica - 2.17-0ubuntu1
---------------
musica (2.17-0ubuntu1) oneiric; urgency=low
[ Serge Hallyn ]
* debian/cron.hourly: add -L to find options to support symlinks under
/usr/share/music/musica.
[ Dustin Kirkland ]
* jplayer.php: LP: #811477
- use the google hosted jquery.min.js until the local one in Debian/Ubuntu
gets fixed
* debian/cron.hourly, index.php, jplayer.php:
- partial support for m4a
* debian/control, index.php:
- remove that nasty backtick call to eyeD3, use php-id3 instead
-- Dustin Kirkland <kirkland at ubuntu.com> Thu, 28 Jul 2011 20:23:17 -0500
** Changed in: musica (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to jquery in Ubuntu.
https://bugs.launchpad.net/bugs/811477
Title:
[regression] syntax errors in minified version of jquery
Status in “jquery” package in Ubuntu:
Confirmed
Status in “musica” package in Ubuntu:
Fix Released
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jquery/+bug/811477/+subscriptions
More information about the foundations-bugs
mailing list