MCPcopy
hub / github.com/perkeep/perkeep / fixInput

Function fixInput

app/publisher/jquery.js:5198–5209  ·  view source on GitHub ↗
( src, dest )

Source from the content-addressed store, hash-verified

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

Callers 1

jquery.jsFile · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected