Opened 10 years ago

Closed 7 years ago

#15377 closed defect (patchwelcome)

dojo/request, nodejs and handleAs "xml" not working

Reported by: Kitson Kelly Owned by: Bryan Forbes
Priority: undecided Milestone: 1.11
Component: IO Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:


It appears that dojo/request + node + handleAs "xml" is not working.

I have attached a example file, that if you run under node, returns the data as a string, instead of a parsed XML document:

node lib/dojo/dojo.js load=test

The example test is the following:

require(["dojo/request", "dojo/json"], function(request, JSON){
  request.get("", {
    handleAs: "xml"
  }, function(err){

Attachments (1)

test.js (339 bytes) - added by Kitson Kelly 10 years ago.
Example Test

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Kitson Kelly

Attachment: test.js added

Example Test

comment:1 Changed 10 years ago by Mark Wubben

Given that Node does not ship with an XML parser I'm not sure this should or even could be fixed. Instead can we throw an exception when handleAs: "xml" is used?

comment:2 Changed 7 years ago by dylan

Milestone: tbd1.11
Resolution: patchwelcome
Status: newclosed

We would accept a patch, but otherwise this won't get fixed as it's a minor issue.

Note: See TracTickets for help on using tickets.