html5 picture element and Internet Explorer 8

I am about to use the picture element in a new project and worried about Internet Explorer 8.

I have consider the fact of using this simple and known script:

<!--[if IE 8]>   
<script>      document.createElement('picture)';   </script>
<![endif]-->

Do you see any problem in it?

Thanks.

Well you are selecting LESS THAN IE8 in that code right there. So that means IE7 and down will get that code. You can make it β€œlte”

<!--[if lte IE 8]>
1 Like

Yes, I know. Many thanks Ryan.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.