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 58221c70fba26cd18178470448c3f39a254615de 2 parents ef1a856 + f9993e7
@ryanseddon ryanseddon 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.