Re: Document.createElement: null or HTML namespace?

On 10/8/14, 7:35 AM, Robin Berjon wrote:
> Maybe I'm missing something obvious but I can't get the following to
> return anything in Chrome Canary, WebKit nightly, or IE11:
>
>    document.implementation.createDocument(null, null, null).load

Interesting.  We definitely added this because IE supported it and pages 
were using it.  Those versions of IE didn't support it on the result of 
createDocument, because they had no createDocument support at all; there 
were MSXML ways to create an XML document and pages would branch on 
existence of document.implementation.createDocument and use that or the 
MSXML way.

Note also https://bugzilla.mozilla.org/show_bug.cgi?id=983090

> If it's used, maybe it's in some really ancient code from before Gecko
> supported XHR?

It's possible; load() support predates XHR by about 4 years in Gecko.

Note that the new ActiveXObject bit still works in IE11, including in 
standards mode.  See 
http://web.mit.edu/bzbarsky/www/testcases/document/document.load6.html

> How long ago was that?

Probably at least 3-4 years ago when we last checked.

-Boris

Received on Wednesday, 8 October 2014 15:11:22 UTC