[jQuery] $.tag() bug

[jQuery] $.tag() bug

Somewhere along the line the $.tag function was changed from this:
$.tag = function(a,b){
return a && typeof a.getElementsByTagName != "undefined" ?
a.getElementsByTagName( b ) : [];
};
to this:
$.tag = function(a,b){
return a && a.getElementsByTagName ?
a.getElementsByTagName( b ) : [];
};
The new implementation causes errors under ie6. The specific use case
which causes the error is looking up an arbitrary element name in an
XML dom (not the window.document object). ie: $('myTagName', myXmlDom)
The error I get is: " Wrong number of arguments or invalid property assignment"
Reverting back to the old method works w/o error.
Mike
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/