Re: XMLHttpRequest in Firefox 1.5
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Note crosspost/followu-to netscape.public.mozilla.xml as this has nothing to do with the JavaScript engines. rpotencz wrote: > I am using the XMLHttpRequest object to communicate between a browser > extension and a "server" program installed locally. Until now, > XMLHttpRequest didn't care about the actual content of the request and > the answer, but starting with version 1.5, my requests raise a "not > well-formed" error. What kind of requests, how does your code look, which method call or statement gives that error message? Does XMLHttpRequest raise the error? > I have two questions: does anybody here know why > the Mozilla developers would want to force JavaScript developers to use > XML syntax? And, most importantly, is there a document availabe which > describes how the request and the answer must look like in order to be > considered "well formed" ? Well-formedness is defined in the XML specification for XML. For instance if the HTTP response has a Content-Type header with an XML MIME type like text/xml or application/xml then the XMLHttpRequest object tries to parse the response as XML to populate the responseXML DOM document object and there you could get an XML parse error that the response is not well-formed. As for your problem, see the questions above, provide some details of your code and we can tell you more. -- Martin Honnen http://JavaScript.FAQTs.com/