My issue involves creating blocks using data from a JSON file, which includes a background-image path for a div.
Here is an example snippet:
[
..
{
..
..
"smallimg": "../assets/images/dummy/dummy-intro-1.jpg",
..
]
On my page, I have something like:
<div class="fact-img" style="{{facts.smallimg}}" ...
I initially tried including the background-image in the JSON string, but that didn't work. Even placing the background-image declaration just before it did not solve the problem.
Strangely, anything I place inside the style tag is not being recognized by IE (I'm using IE10 / IE9).
If I use {{facts.smallimg}} anywhere else except inside the style tag, it displays correctly. The issue only arises when it's placed within the style tag.
It's worth noting that this works perfectly fine on other browsers.
Any thoughts on why this may be happening?
Plunker code: http://plnkr.co/edit/vXIiTc1P7QUougHJl2Cq
Please pay attention to this part in each fact:
<div class="fact-img" style="background-image:url('../assets/images/dummy/dummy-intro-1.jpg')" data-test="background-image:url('../assets/images/dummy/dummy-intro-1.jpg')">
The content within the style="" attribute is not rendering at all on any version of IE.