( elem, content )
| 5960 | |
| 5961 | // Prefer a tbody over its parent table for containing new rows |
| 5962 | function manipulationTarget( elem, content ) { |
| 5963 | if ( nodeName( elem, "table" ) && |
| 5964 | nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { |
| 5965 | |
| 5966 | return jQuery( elem ).children( "tbody" )[ 0 ] || elem; |
| 5967 | } |
| 5968 | |
| 5969 | return elem; |
| 5970 | } |
| 5971 | |
| 5972 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 5973 | function disableScript( elem ) { |