- From: Maciej Stachowiak <mjs@apple.com>
- Date: Tue, 12 Jan 2010 19:17:07 -0800
- To: Devdatta <dev.akhawe@gmail.com>
- Cc: Boris Zbarsky <bzbarsky@mit.edu>, Ian Hickson <ian@hixie.ch>, public-html@w3.org, public-web-security@w3.org
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:42 UTC