MCPcopy Index your code
hub / github.com/JsAaron/jQuery / fixInput

Function fixInput

2.1.1/src/manipulation.js:134–145  ·  view source on GitHub ↗
( src, dest )

Source from the content-addressed store, hash-verified

132
133// Fix IE bugs, see support tests
134function fixInput( src, dest ) {
135 var nodeName = dest.nodeName.toLowerCase();
136
137 // Fails to persist the checked state of a cloned checkbox or radio button.
138 if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
139 dest.checked = src.checked;
140
141 // Fails to return the selected option to the default selected state when cloning options
142 } else if ( nodeName === "input" || nodeName === "textarea" ) {
143 dest.defaultValue = src.defaultValue;
144 }
145}
146
147jQuery.extend({
148 clone: function( elem, dataAndEvents, deepDataAndEvents ) {

Callers 1

manipulation.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected