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

Function fixInput

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

Source from the content-addressed store, hash-verified

6032
6033// Fix IE bugs, see support tests
6034function fixInput( src, dest ) {
6035 var nodeName = dest.nodeName.toLowerCase();
6036
6037 // Fails to persist the checked state of a cloned checkbox or radio button.
6038 if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
6039 dest.checked = src.checked;
6040
6041 // Fails to return the selected option to the default selected state when cloning options
6042 } else if ( nodeName === "input" || nodeName === "textarea" ) {
6043 dest.defaultValue = src.defaultValue;
6044 }
6045}
6046
6047function domManip( collection, args, callback, ignored ) {
6048

Callers 1

jquery-3.5.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected