Skip to content

Commit

Permalink
iframe folder of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
SlexAxton committed Jun 2, 2013
1 parent 029cefe commit 34807de
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
19 changes: 16 additions & 3 deletions feature-detects/iframe/sandbox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
/*!
{
"name": "iframe[sandbox] Attribute",
"property": "sandbox",
"tags": ["iframe"],
"notes": [{
"name": "WhatWG Spec",
"href": "http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-sandbox"
}]
}
!*/
/* DOC
Test for `sandbox` attribute in iframes.
*/
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// 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 createElement('iframe'));
});
20 changes: 16 additions & 4 deletions feature-detects/iframe/seamless.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// Test for `seamless` attribute in iframes.
//
// Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-seamless
/*!
{
"name": "iframe[seamless] Attribute",
"property": "seamless",
"tags": ["iframe"],
"notes": [{
"name": "WhatWG Spec",
"href": "http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-seamless"
}]
}
!*/
/* DOC
Test for `seamless` attribute in iframes.
*/
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
Modernizr.addTest('seamless', 'seamless' in createElement('iframe'));
});
20 changes: 16 additions & 4 deletions feature-detects/iframe/srcdoc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// Test for `srcdoc` attribute in iframes.
//
// Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-srcdoc
/*!
{
"name": "iframe[srcdoc] Attribute",
"property": "srcdoc",
"tags": ["iframe"],
"notes": [{
"name": "WhatWG Spec",
"href": "http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-srcdoc"
}]
}
!*/
/* DOC
Test for `srcdoc` attribute in iframes.
*/
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
Modernizr.addTest('srcdoc', 'srcdoc' in createElement('iframe'));
});

0 comments on commit 34807de

Please sign in to comment.