From e93da8b04da86773247aadb1cbb1912e4f4526b2 Mon Sep 17 00:00:00 2001 From: Priyansh Date: Tue, 22 Dec 2020 17:49:59 +0530 Subject: Rewriting Project --- node_modules/jquery/src/attributes/support.js | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 node_modules/jquery/src/attributes/support.js (limited to 'node_modules/jquery/src/attributes/support.js') diff --git a/node_modules/jquery/src/attributes/support.js b/node_modules/jquery/src/attributes/support.js new file mode 100644 index 0000000..af60e96 --- /dev/null +++ b/node_modules/jquery/src/attributes/support.js @@ -0,0 +1,33 @@ +define( [ + "../var/document", + "../var/support" +], function( document, support ) { + +"use strict"; + +( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: Android <=4.3 only + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE <=11 only + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: IE <=11 only + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; +} )(); + +return support; + +} ); -- cgit v1.2.3