MCPcopy Index your code
hub / github.com/jquery/jquery / manipulationTarget

Function manipulationTarget

test/data/jquery-3.7.1.js:5793–5801  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

5791
5792// Prefer a tbody over its parent table for containing new rows
5793function 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
5804function disableScript( elem ) {

Callers 1

jquery-3.7.1.jsFile · 0.70

Calls 2

nodeNameFunction · 0.70
jQueryFunction · 0.70

Tested by

no test coverage detected