Abban / jQuery-Picture

jQuery plugin to handle responsive images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not working in IE8

vlrprbttst opened this issue · comments

im using jquery picture in IE8 and it's not working..
i am using the figure option and what happens is that the images don't show where they're supposed to show, and one out of two pictures (i used it only for two pics) is shown at the bottom of the page.
i tried display:none for the figure's wrapper div and well, figure is not shown anymore but it chops off the end of my website.. this is weird. wondering if anyone had the same problem

I'm having the same problem, however my image is not showing up at all in IE8!
My output is correct and is showing and working fine in Chrome, Firefox & Safari:

<figure class="responsive"
data-media="http://mydomain.com/wp-content/uploads/2013/07/image_LR-480x262.jpg"
data-media480="http://mydomain.com/wp-content/uploads/2013/07/image_LR-760x416.jpg"
data-media760="http://mydomain.com/wp-content/uploads/2013/07/image_LR.jpg"
alt="My alt text">
<noscript><img src="http://mydomain.com/wp-content/uploads/2013/07/image_LR.jpg" alt="My alt text" />    </noscript>
</figure>

Any ideas what's causing this?
Thanks!

Same goes for this output by the way:

<picture class="responsive" alt="My alt text">
<source src="http://mydomain.com/wp-content/uploads/2013/07/image_LR-480x262.jpg">
<source media="(min-width:480px)" src="http://mydomain.com/wp-content/uploads/2013/07/image_LR-760x416.jpg">
<source media="(min-width:760px)" src="http://mydomain.com/wp-content/uploads/2013/07/image_LR.jpg">
<noscript><img alt="My alt text" src="http://mydomain.com/wp-content/uploads/2013/07/image_LR.jpg" draggable="false"></noscript>
</picture>

Are you using the html5shiv script for IE8 so that it is aware of the figure element?

Howdy, I'm currently working to a killer deadline. But I'll look into this when I get the chance. AFAIR I tested it in ie8 and it worked. That was a year ago though.

The picture element was only added to this to enable some testing and playing about with new proposed features. I would use

on a production site. I'm not sure if is going to get any support now that the srcset stuff has been implemented into Webkit.

I'd rather not need this plugin by now but it took them a year of arguing to make any progress at all..

I'm currently not using a html5shiv script in my website, but I did try adding the modernizr script and it still didn't work for me in ie8. Unfortunately I switched to picturefill wich does work in ie8 because it uses 'span' classes and not 'figure' or 'picture': https://github.com/scottjehl/picturefill

Cool, whatever works. I just re-checked the demo on jquerypicture.com in ie8 and it works fine.

@omegaiori Are you still having trouble? Your issue sounds like a CSS float problem to me.

well, i didn't close the

tag.. that's why i had weird position problems but still.. now the weird behaviours are gone but still, no pictures in ie8. here's my website: www.valeriopierbattista.com i used jquery picture in the projects section (2 pictures)