[regression] syntax errors in minified version of jquery
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jquery (Debian) |
Fix Released
|
Unknown
|
|||
jquery (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland | ||
musica (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
libjs-jquery 1.6.2-1ubuntu1 in oneiric introduced a regression compared to 1.6.1-1ubuntu1.
/usr/share/
The original code shows:
/usr/share/
======
6839 serializeArray: function() {
6840 return this.map(
6841 return this.elements ? jQuery.makeArray( this.elements ) : this;
6842 })
6843 .filter(function(){
6844 return this.name && !this.disabled &&
6845 ( this.checked || rselectTextarea
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/
ProcVersionSign
Uname: Linux 3.0.0-5-generic i686
NonfreeKernelMo
Architecture: i386
Date: Sat Jul 16 13:24:15 2011
Dependencies:
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=
SourcePackage: jquery
UpgradeStatus: Upgraded to oneiric on 2011-05-09 (68 days ago)
Changed in jquery (Ubuntu): | |
importance: | Undecided → High |
summary: |
- [regression] syntax error in minified version of jquery + [regression] syntax errors in minified version of jquery |
Changed in jquery (Debian): | |
status: | Unknown → Fix Released |
There are more syntax errors where "\\" are turned into "\".