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

Function manipulationTarget

2.0.3/2.0.3.js:6010–6017  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

6008// Support: 1.x compatibility
6009// Manipulating tables requires a tbody
6010 function manipulationTarget( elem, content ) {
6011 return jQuery.nodeName( elem, "table" ) &&
6012 jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ?
6013
6014 elem.getElementsByTagName("tbody")[0] ||
6015 elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
6016 elem;
6017 }
6018
6019// Replace/restore the type attribute of script elements for safe DOM manipulation
6020 function disableScript( elem ) {

Callers 1

2.0.3.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected