( elem, content )
| 5791 | |
| 5792 | // Prefer a tbody over its parent table for containing new rows |
| 5793 | function manipulationTarget( elem, content ) { |
| 5794 | if ( nodeName( elem, "table" ) && |
| 5795 | nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { |
| 5796 | |
| 5797 | return jQuery( elem ).children( "tbody" )[ 0 ] || elem; |
| 5798 | } |
| 5799 | |
| 5800 | return elem; |
| 5801 | } |
| 5802 | |
| 5803 | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| 5804 | function disableScript( elem ) { |
no test coverage detected