Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #652 from mikewest/sandbox

Detects for sandbox, seamless and srcdoc iframe attributes, closes #652
  • Loading branch information...
commit ca58b50f2b759fa7f922b9c5fe97f9c58684e751 2 parents 2e33ef9 + 3a24ba8
@phistuck phistuck authored
View
5 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'));
View
5 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'));
View
5 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'));
Please sign in to comment.
Something went wrong with that request. Please try again.