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

Function fixInput

2.0.3/Dom.js:863–874  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

861 // Support: IE >= 9
862
863 function fixInput(src, dest) {
864 var nodeName = dest.nodeName.toLowerCase();
865
866 // Fails to persist the checked state of a cloned checkbox or radio button.
867 if (nodeName === "input" && manipulation_rcheckableType.test(src.type)) {
868 dest.checked = src.checked;
869
870 // Fails to return the selected option to the default selected state when cloning options
871 } else if (nodeName === "input" || nodeName === "textarea") {
872 dest.defaultValue = src.defaultValue;
873 }
874 }
875 jQuery.fn.extend({
876 wrapAll: function(html) {
877 var wrap;

Callers 1

Dom.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected