MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / manipulationTarget

Function manipulationTarget

libs/jquery-3.5.1/jquery-2.2.4.js:5138–5145  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

5136
5137// Manipulating tables requires a tbody
5138function manipulationTarget( elem, content ) {
5139 return jQuery.nodeName( elem, "table" ) &&
5140 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
5141
5142 elem.getElementsByTagName( "tbody" )[ 0 ] ||
5143 elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
5144 elem;
5145}
5146
5147// Replace/restore the type attribute of script elements for safe DOM manipulation
5148function disableScript( elem ) {

Callers 1

jquery-2.2.4.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected