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

Function manipulationTarget

2.1.1/test/other.js:2326–2333  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

2324// Support: 1.x compatibility
2325// Manipulating tables requires a tbody
2326function manipulationTarget( elem, content ) {
2327 return jQuery.nodeName( elem, "table" ) &&
2328 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
2329
2330 elem.getElementsByTagName("tbody")[0] ||
2331 elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
2332 elem;
2333}
2334
2335// Replace/restore the type attribute of script elements for safe DOM manipulation
2336function disableScript( elem ) {

Callers 1

other.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected