data.querySelectorAll('multistatus') works, $('multistatus', data) fails?

data.querySelectorAll('multistatus') works, $('multistatus', data) fails?

The following uses jQuery.ajax() to make a request to a Subversion repository. The response is content type "text/xml"

I can traverse the response with, data.querySelectorAll('multistatus'), etc.

 - but $('multistatus', data) returns zero elements

Any idea why $('multistatus', data) fails, while data.querySelectorAll('multistatus') succeeds?

May I open a ticket?

  1. jQuery(function ($)
      {
        jQuery.ajax({

          type: 'PROPFIND',
          url: '/svn',

          beforeSend: function (xhr)
            {
              xhr.setRequestHeader('Depth', 0);
            },

          data: <propfind xmlns="DAV:">
              <prop>
                <version-controlled-configuration/>
              </prop>
            </propfind>.toXMLString(),
           
          success: function (data)
            {
              alert([
                "FAILS: $('multistatus response propstat prop version-controlled-configuration href', data).text()",
                $('multistatus response propstat prop version-controlled-configuration href', data).text(),
                '',
                "WORKS: $(data.querySelectorAll('multistatus response propstat prop version-controlled-configuration href')).text()",
                $(data.querySelectorAll('multistatus response propstat prop version-controlled-configuration href')).text()].join("\n"));
            } });
      });