shawnbot / aight

JavaScript shims and shams for making IE8-9 behave reasonably
Other
756 stars 98 forks source link

d3's style("background-image") doesn't work #2

Closed shawnbot closed 11 years ago

shawnbot commented 12 years ago

Setting CSS background-image with D3 doesn't work in IE8. We've resorted to using jQuery instead:

d3.selectAll(".foo")
  .each(function(d, i) { $(this).css("background-image", d.photo_url); });
shawnbot commented 11 years ago

aight.d3.js now handles shimming d3 to set element.style.backgroundImage (and other background-related properties) instead of using IE's busted element.style.setAttribute().