Skip to content

Comment on Microsoft doesn't even test Bing in Internet Explorer. Lord help us. parent

Comments

> It was not even in principle possible for Mozilla, Opera and others to implement XHR as originally implemented by MS, since to do so would require implementing ActiveX support.

Incorrect. The code to create an XHR object in IE looked something like this:

var xhr = new ActiveXObject("Msxml2.XMLHTTP.6.0");

Any browser could absolutely have supported creating XHR objects in this manner without being forced to support ActiveX.

Right up until MS changed their implementation, say to version 7. MSIE's implementation of XHR exposed internal details of the ActiveX-based implementation which were subject to change-- it was never meant to be an external API, but rather, to enable features in Outlook Web Access. Thus, any third-party implementation would have to involve making a list of special magic strings to recognize in the ActiveXObject() call, then delegate to code that attempts to replicate internal implementation details of the given ActiveX object.

If non-ActiveX browsers had started deliberately breaking feature detection, the browser wars would have been even worse.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.