Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1546 closed bug (fixed)

sending Document as $.ajax() data parameter breaks in 1.1.4

Reported by: amartone Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: ajax xml document xmlhttprequest Cc:
Blocked by: Blocking:

Description

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))

According to the W3C, XmlHttpRequest.send should support documents:

http://www.w3.org/TR/XMLHttpRequest/#dfn-send

Change History (1)

comment:1 Changed 13 years ago by john

Milestone: 1.21.2.2
Resolution: fixed
Status: newclosed
Version: 1.1.41.2.1

Fixed in SVN rev [3669].

Note: See TracTickets for help on using tickets.