$.ajax() sending XML documents

$.ajax() sending XML documents


With jQuery 1.1.3.1, I was sending an XML document as the data
parameter (along with processData set to false) to several $.ajax()
PUT and POST calls. However, I'm getting an exception with 1.1.4
inside jQuery.extend at line 358. I changed that line to not try to
iterate over prop if it is an XML document, however I'm not aware of
any other side-effects:
if (((prop = arguments[a]) != null) && (prop.nodeType !== 9))
I checked on the docs page, and it mentions that the data parameter
should be either a string or an object consisting of name/value
pairs. Has this always been the case, and is this the intended
behavior?
If this is intentional, what would be the jQuery best practice for
sending an XML payload on an ajax request? Although I could serialize
my document and pass that to the $.ajax function, I'd hope that I
wouldn't have to go through that extra step. According to the W3C,
XmlHttpRequest.send should support documents:
http://www.w3.org/TR/XMLHttpRequest/#dfn-send
If this is a bug in jQuery.extend, I'd be happy to create a ticket.
Thanks in advance!
Andy Martone