IE Bug?

IE Bug?


Got a little something I noticed in 1.1.3 that seems to still be
hanging around.
Sometimes I use 'find' to verify that a dom object is indeed a child
of a parent like so:
$('#parent').find(child);
When child is an actual dom object I get a error in IE. I realize
using a dom object as a selector isn't really standard jQuery usage
and isn't mentioned in the docs, but I like it, so I tracked it down
this afternoon and thought I'd post a fix.
jQuery 1.2.1 line 227 inside the find method.
return this.pushStack( /[^+>] [^+>]/.test( t ) || t.indexOf("..") >
-1 ?
changed to
return this.pushStack( /[^+>] [^+>]/.test( t ) || (t.indexOf &&
t.indexOf("..")) > -1 ?
It seems to work OK for me, though I haven't tested it too carefully
yet.
VP