diff options
Diffstat (limited to 'bower_components/jquery/src/attributes/support.js')
| -rw-r--r-- | bower_components/jquery/src/attributes/support.js | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/bower_components/jquery/src/attributes/support.js b/bower_components/jquery/src/attributes/support.js deleted file mode 100644 index 2292ab7..0000000 --- a/bower_components/jquery/src/attributes/support.js +++ /dev/null @@ -1,70 +0,0 @@ -define( [ - "../var/document", - "../var/support" -], function( document, support ) { - -( function() { - var a, - input = document.createElement( "input" ), - div = document.createElement( "div" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - // Setup - div = document.createElement( "div" ); - div.setAttribute( "className", "t" ); - div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; - a = div.getElementsByTagName( "a" )[ 0 ]; - - // Support: Windows Web Apps (WWA) - // `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "checkbox" ); - div.appendChild( input ); - - a = div.getElementsByTagName( "a" )[ 0 ]; - - // First batch of tests. - a.style.cssText = "top:1px"; - - // Test setAttribute on camelCase class. - // If it works, we need attrFixes when doing get/setAttribute (ie6/7) - support.getSetAttribute = div.className !== "t"; - - // Get the style information from getAttribute - // (IE uses .cssText instead) - support.style = /top/.test( a.getAttribute( "style" ) ); - - // Make sure that URLs aren't manipulated - // (IE normalizes it by default) - support.hrefNormalized = a.getAttribute( "href" ) === "/a"; - - // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) - support.checkOn = !!input.value; - - // Make sure that a selected-by-default option has a working selected property. - // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) - support.optSelected = opt.selected; - - // Tests for enctype support on a form (#6743) - support.enctype = !!document.createElement( "form" ).enctype; - - // Make sure that the options inside disabled selects aren't marked as disabled - // (WebKit marks them as disabled) - select.disabled = true; - support.optDisabled = !opt.disabled; - - // Support: IE8 only - // Check if we can trust getAttribute("value") - input = document.createElement( "input" ); - input.setAttribute( "value", "" ); - support.input = input.getAttribute( "value" ) === ""; - - // Check if an input maintains its value after becoming a radio - input.value = "t"; - input.setAttribute( "type", "radio" ); - support.radioValue = input.value === "t"; -} )(); - -return support; - -} ); |
