File: iframe-sandbox.js

package info (click to toggle)
modernizr 2.6.2%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,036 kB
  • sloc: javascript: 1,493; makefile: 10
file content (5 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (4)
1
2
3
4
5
// Test for `sandbox` attribute in iframes.
//
// Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-sandbox

Modernizr.addTest('sandbox', 'sandbox' in document.createElement('iframe'));