UNPKG

modernizr

Version:

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

19 lines (18 loc) 473 B
/*! { "name": "iframe[srcdoc] Attribute", "property": "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')); });