Skip to content
Permalink
Browse files

Fixed another bug with retreiving elements by ID.

  • Loading branch information
jeresig committed Jun 11, 2006
1 parent b5256ca commit 4b6bcb235fc4ae30692d27910dffbf79295e36f4
Showing with 2 additions and 1 deletion.
  1. +2 −1 jquery/jquery.js
@@ -523,7 +523,7 @@ $.Select = function( t, context ) {

if ( m[1] == "#" ) { // Ummm, should make this work in all XML docs
var oid = document.getElementById(m[2]);
r = oid ? [oid] : [];
r = ret = oid ? [oid] : [];
t = t.replace( re2, "" );
} else {
if ( m[2] === "" || m[1] == "." ) { m[2] = "*"; }
@@ -564,6 +564,7 @@ $.Select = function( t, context ) {

if ( ret && ret[0] == context ) { ret.shift(); }
done = $.merge( done, ret );

return done;
};

0 comments on commit 4b6bcb2

Please sign in to comment.
You can’t perform that action at this time.