MCPcopy
hub / github.com/jquery/jquery / fixInput

Function fixInput

test/data/jquery-3.7.1.js:5851–5862  ·  view source on GitHub ↗
( src, dest )

Source from the content-addressed store, hash-verified

5849
5850// Fix IE bugs, see support tests
5851function fixInput( src, dest ) {
5852 var nodeName = dest.nodeName.toLowerCase();
5853
5854 // Fails to persist the checked state of a cloned checkbox or radio button.
5855 if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
5856 dest.checked = src.checked;
5857
5858 // Fails to return the selected option to the default selected state when cloning options
5859 } else if ( nodeName === "input" || nodeName === "textarea" ) {
5860 dest.defaultValue = src.defaultValue;
5861 }
5862}
5863
5864function domManip( collection, args, callback, ignored ) {
5865

Callers 1

jquery-3.7.1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected