Question

I would like to use html5shiv for support on IE9 but I can't get it to work. I have installed this in the head section:

<!--[if IE 9]>

<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

I need support for HTML5 Iframe sandbox:

<iframe id="iframe" src="http://www.telegraaf.nl" sandbox="allow-scripts allow-forms allow-same-origin"></iframe>

The website in the Iframe will break out the iframe in IE9 so that means the sandbox is not working. I think the problem is maybe that the sandbox is an attribute of iframe rather than a "style method/element".

So basically I need some advice on this. What else can I do? Is there a plugin (jquery?javascript?) somewhere that will support sandbox in IE?

Was it helpful?

Solution

You don't need html5shiv in this case but a polyfill for that property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top