UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

20 lines (19 loc) 503 B
/*! { "name": "iframe[srcdoc] Attribute", "property": "srcdoc", "caniuse": "iframe-srcdoc", "tags": ["iframe"], "builderAliases": ["iframe_srcdoc"], "notes": [{ "name": "WHATWG Spec", "href": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-srcdoc" }] } !*/ /* DOC Test for `srcdoc` attribute in iframes. */ define(['Modernizr', 'createElement'], function(Modernizr, createElement) { Modernizr.addTest('srcdoc', 'srcdoc' in createElement('iframe')); });