MCPcopy Create free account
hub / github.com/JsAaron/jQuery / manipulationTarget

Function manipulationTarget

2.1.1/test/jquery-1.11.1.js:5357–5364  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

5355// Support: IE<8
5356// Manipulating tables requires a tbody
5357function manipulationTarget( elem, content ) {
5358 return jQuery.nodeName( elem, "table" ) &&
5359 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
5360
5361 elem.getElementsByTagName("tbody")[0] ||
5362 elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
5363 elem;
5364}
5365
5366// Replace/restore the type attribute of script elements for safe DOM manipulation
5367function disableScript( elem ) {

Callers 1

jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected