MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / fixInput

Function fixInput

libs/jquery-3.5.1/jquery-2.2.4.js:5199–5210  ·  view source on GitHub ↗
( src, dest )

Source from the content-addressed store, hash-verified

5197
5198// Fix IE bugs, see support tests
5199function fixInput( src, dest ) {
5200 var nodeName = dest.nodeName.toLowerCase();
5201
5202 // Fails to persist the checked state of a cloned checkbox or radio button.
5203 if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
5204 dest.checked = src.checked;
5205
5206 // Fails to return the selected option to the default selected state when cloning options
5207 } else if ( nodeName === "input" || nodeName === "textarea" ) {
5208 dest.defaultValue = src.defaultValue;
5209 }
5210}
5211
5212function domManip( collection, args, callback, ignored ) {
5213

Callers 1

jquery-2.2.4.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected