1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/jquery/src/manipulation/support.js

36 lines
1 KiB
JavaScript
Raw Normal View History

2016-01-09 13:36:35 -05:00
define( [
"../var/document",
2015-06-26 11:53:49 -04:00
"../var/support"
2016-01-09 13:36:35 -05:00
], function( document, support ) {
2015-06-26 11:53:49 -04:00
2016-06-11 11:55:39 -04:00
"use strict";
2016-01-09 13:36:35 -05:00
( function() {
2015-06-26 11:53:49 -04:00
var fragment = document.createDocumentFragment(),
div = fragment.appendChild( document.createElement( "div" ) ),
input = document.createElement( "input" );
2016-06-11 11:55:39 -04:00
// Support: Android 4.0 - 4.3 only
2015-06-26 11:53:49 -04:00
// Check state lost if the name is set (#11217)
// Support: Windows Web Apps (WWA)
// `name` and `type` must use .setAttribute for WWA (#14901)
input.setAttribute( "type", "radio" );
input.setAttribute( "checked", "checked" );
input.setAttribute( "name", "t" );
div.appendChild( input );
2016-06-11 11:55:39 -04:00
// Support: Android <=4.1 only
2015-06-26 11:53:49 -04:00
// Older WebKit doesn't clone checked state correctly in fragments
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
2016-06-11 11:55:39 -04:00
// Support: IE <=11 only
2015-06-26 11:53:49 -04:00
// Make sure textarea (and checkbox) defaultValue is properly cloned
div.innerHTML = "<textarea>x</textarea>";
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
2016-01-09 13:36:35 -05:00
} )();
2015-06-26 11:53:49 -04:00
return support;
2016-01-09 13:36:35 -05:00
} );