[Bug 21945] Does responseXML ever return an XMLDocument

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21945

--- Comment #11 from Erik Arvidsson <arv@chromium.org> ---
(In reply to comment #10)
> In IE9 the thing returned from responseXML isn't even instanceof Document
> and is otherwise all sorts of weird (toString on it throws,
> Object.prototype.toString.call returns "[object Object]", etc, etc).  It
> certainly doesn't support various Document stuff from the spec like the
> named getter and write().
> 
> So I guess you could argue that IE has merged Document and HTMLDocument by
> making only HTML documents be Document.... I'm not sure that's useful.

That was in IE9... In IE10 the following asserts all passes.

var xhr = new XMLHttpRequest;
xhr.open('GET', 'test.xml', false);
xhr.send();

assert(Object.prototype.toString.call(xhr.responseXML) === '[object
Document]');
assert(xhr.responseXML instanceof Document);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 7 May 2013 19:41:23 UTC