diff options
author | Oleg <markelog@gmail.com> | 2012-12-28 23:38:30 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-28 23:41:31 +0400 |
commit | 39e6792b5ce70789ef1445336ac76104220d5e09 (patch) | |
tree | 2f39d5fd6d0143af5e78bf1df6895040941251ef /src/manipulation.js | |
parent | 72e9e91612347eab1c28596a34c0b53d2c36b150 (diff) | |
download | jquery-39e6792b5ce70789ef1445336ac76104220d5e09.tar.gz jquery-39e6792b5ce70789ef1445336ac76104220d5e09.zip |
Rename fixCloneNodeIssues helper to fixInput
Move support comment
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 4b32fda1f..9aea16f9d 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -20,6 +20,7 @@ var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^> // Support: IE 9 wrapMap.optgroup = wrapMap.option; + wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead = wrapMap.col = wrapMap.tr; wrapMap.th = wrapMap.td; @@ -391,7 +392,7 @@ jQuery.extend({ srcElements = getAll( elem ); for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixCloneNodeIssues( srcElements[ i ], destElements[ i ] ); + fixInput( srcElements[ i ], destElements[ i ] ); } } @@ -621,15 +622,14 @@ function getAll( context, tag ) { ret; } -function fixCloneNodeIssues( src, dest ) { +// Support: IE >= 9 +function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); - // Support: IE >= 9 // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { dest.checked = src.checked; - // Support: IE >= 9 // Fails to return the selected option to the default selected state when cloning options } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; |