MCPcopy
hub / github.com/jquery/jquery / manipulationTarget

Function manipulationTarget

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

Source from the content-addressed store, hash-verified

5435
5436// Prefer a tbody over its parent table for containing new rows
5437function manipulationTarget( elem, content ) {
5438 if ( nodeName( elem, "table" ) &&
5439 nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
5440
5441 return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
5442 }
5443
5444 return elem;
5445}
5446
5447function cloneCopyEvent( src, dest ) {
5448 var type, i, l,

Callers 1

jQueryFactoryFunction · 0.70

Calls 2

nodeNameFunction · 0.70
jQueryFunction · 0.70

Tested by

no test coverage detected