[whatwg] XMLHttpRequest.responseXML and invalid XML documents

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/

Received on Wednesday, 25 January 2006 03:54:43 UTC