aWebDeveloper
aWebDeveloper

Reputation: 38352

what version of IE support security="restricted" for iframes

what version of IE support security="restricted" for iframes

and can i use both security="restricted" along with sandbox="allow-scripts". If so which one is taken into account.

Does any other browser otherthan IE support the first one(security).

Upvotes: 2

Views: 1131

Answers (1)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201588

The security attribute is IE-only. The Microsoft page on it is vague and describes requirements just as “Minimum supported client: Windows XP, Minimum supported server: Windows 2000 Server”. But in an IEblog posting Using Frames More Securely from Jan. 2008, a comment refers to it as a feature that “has been supported by the browser for over 7 years now”.

So it seems safe to assume that all versions of IE currently in use support it. And in IE 10, it works even in IE 5 Quirks Mode (which does not prove anything, since the emulation is far from complete, but it suggests that the support is old).

There does not seem to be any reason to expect that newer HTML5 attributes would affect the security attribute. Update: in case specific conflicts, at least on IE 10, security seems to take priority, so e.g. security=restricted sandbox=allow-scripts makes scripts disallowed.

Upvotes: 2

Related Questions