MCPcopy Create free account
hub / github.com/TruthHun/BookStack / fixInput

Function fixInput

static/wangEditor/js/lib/jquery-2.2.1.js:5193–5204  ·  view source on GitHub ↗
( src, dest )

Source from the content-addressed store, hash-verified

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

Callers 1

jquery-2.2.1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected