Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make HTML5 sandbox work for IE8/9 using polyfill or shim

I would like to make the new HTML5 Iframe attribute sandbox work in IE8 and 9. I have Googled for about a day now and tried many "libraries" which are supposed to make HTML5 work, but they don't seem to have "sandbox" included.

So my question; Where can I find a polyfill/shim/plugin/snippet or anything else to make the Iframe sandbox work in IE8/9 ?

like image 251
Youss Avatar asked Oct 04 '22 03:10

Youss


1 Answers

As others have noted you cannot get this to work in JavaScript alone, I would say your best bet is to use the security="restricted" IE only attribute.

See here : http://blogs.msdn.com/b/ie/archive/2008/01/18/using-frames-more-securely.aspx

like image 105
Woody Avatar answered Oct 09 '22 16:10

Woody