MCPcopy
hub / github.com/babysor/MockingBird / manipulationTarget

Function manipulationTarget

web/static/js/jquery.js:5962–5970  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

5960
5961// Prefer a tbody over its parent table for containing new rows
5962function 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
5973function disableScript( elem ) {

Callers 1

jquery.jsFile · 0.85

Calls 2

nodeNameFunction · 0.85
jQueryFunction · 0.85

Tested by

no test coverage detected