How do I make background-size work in IE?

A bit late, but this could also be useful. There is an IE filter, for IE 5.5+, which you can apply: filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src=”https://stackoverflow.com/questions/2991623/images/logo.gif”, sizingMethod=’scale’); -ms-filter: “progid:DXImageTransform.Microsoft.AlphaImageLoader( src=”https://stackoverflow.com/questions/2991623/images/logo.gif”, sizingMethod=’scale’)”; However, this scales the entire image to fit in the allocated area, so if you’re using a sprite, this may cause issues. Specification: AlphaImageLoader Filter @microsoft

Why doesn’t this arrow function work in IE 11?

You’re using arrow functions. IE11 doesn’t support them. Use function functions instead. Here’s Babel’s translation of that to ES5: g.selectAll(“.mainBars”).append(“text”).attr(“x”, function (d) { return d.part == “primary” ? -40 : 40; }).attr(“y”, function (d) { return +6; }).text(function (d) { return d.key; }).attr(“text-anchor”, function (d) { return d.part == “primary” ? “end” : “start”; }); … Read more

What does do?

November 2021 Update As this answer is now 10+ years old my recommendation would be to leave this tag out altogether, unless you must support old legacy browsers. October 2015 Update This answer was posted several years ago and now the question really should be should you even consider using the X-UA-Compatible tag on your … Read more

‘innerText’ works in IE, but not in Firefox

Update: I wrote a blog post detailing all the differences much better. Firefox uses W3C standard Node::textContent, but its behavior differs “slightly” from that of MSHTML’s proprietary innerText (copied by Opera as well, some time ago, among dozens of other MSHTML features). First of all, textContent whitespace representation is different from innerText one. Second, and … Read more