Re: text/sandboxed-html

On Jan 12, 2010, at 6:53 PM, Devdatta wrote:

>> A site wishing to selectively use either <iframe sandbox> or  
>> nothing could
>> feature-detect sandbox support before attempting to load the
>> text/sandboxed-html resource.
> That seems like an important functionality. How would sites be able to
> detect support (short of user agent sniffing) ?

The following JavaScript expression will tell you:

"sandbox" in document.createElement("iframe")

Received on Wednesday, 13 January 2010 03:17:41 UTC