Skip to content

Commit

Permalink
Merge pull request #652 from mikewest/sandbox
Browse files Browse the repository at this point in the history
Detects for sandbox, seamless and srcdoc iframe attributes, closes #652
  • Loading branch information
ryanseddon committed Aug 11, 2012
2 parents ef1a856 + f9993e7 commit 58221c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions feature-detects/iframe-sandbox.js
@@ -0,0 +1,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'));
5 changes: 5 additions & 0 deletions feature-detects/iframe-seamless.js
@@ -0,0 +1,5 @@
// Test for `seamless` attribute in iframes.
//
// Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-seamless

Modernizr.addTest('seamless', 'seamless' in document.createElement('iframe'));
5 changes: 5 additions & 0 deletions feature-detects/iframe-srcdoc.js
@@ -0,0 +1,5 @@
// Test for `srcdoc` attribute in iframes.
//
// Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-srcdoc

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

0 comments on commit 58221c7

Please sign in to comment.