mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
21 lines
544 B
JavaScript
21 lines
544 B
JavaScript
/*!
|
|
{
|
|
"name": "SVG foreignObject",
|
|
"property": "svgforeignobject",
|
|
"tags": ["svg"],
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://www.w3.org/TR/SVG11/extend.html"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for foreignObject tag in SVG.
|
|
*/
|
|
define(['Modernizr', 'toStringFn'], function(Modernizr, toStringFn) {
|
|
Modernizr.addTest('svgforeignobject', function() {
|
|
return !!document.createElementNS &&
|
|
/SVGForeignObject/.test(toStringFn.call(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject')));
|
|
});
|
|
});
|