MCPcopy Create free account
hub / github.com/jquery/jquery / manipulationTarget

Function manipulationTarget

dist-module/jquery.slim.module.js:5001–5009  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

4999
5000// Prefer a tbody over its parent table for containing new rows
5001function manipulationTarget( elem, content ) {
5002 if ( nodeName( elem, "table" ) &&
5003 nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
5004
5005 return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
5006 }
5007
5008 return elem;
5009}
5010
5011function cloneCopyEvent( src, dest ) {
5012 var type, i, l,

Callers 1

jQueryFactoryFunction · 0.70

Calls 2

nodeNameFunction · 0.70
jQueryFunction · 0.70

Tested by

no test coverage detected