[whatwg] XMLHttpRequest.responseXML and invalid XML documents

Hallvord Reiar Michaelsen Steen hallvord at hallvord.com
Wed Jan 25 03:54:43 PST 2006


On 22 Jun 2005 at 16:57, Hallvord Reiar Michaelsen Ste wrote:

> Spec says about responseXML : 
> > If the document was not an XML document, or if the document could
> > not be parsed (due to an XML well-formedness error or unsupported
> > character encoding, for instance), returns null.
> 
> All major browsers return an empty document instead under most of 
> these conditions.

If the document was not an
    XML document, or if the document could not be parsed (due to an 
XML
    well-formedness error or unsupported character encoding, for 
instance),
    returns an empty document.
-- 
Hallvord Reiar Michaelsen Steen
http://www.hallvord.com/





More information about the whatwg mailing list