MCPcopy Create free account
hub / github.com/TruthHun/BookStack / manipulationTarget

Function manipulationTarget

static/wangEditor/js/lib/jquery-2.2.1.js:5132–5139  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

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

Callers 1

jquery-2.2.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected