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

Function manipulationTarget

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

Source from the content-addressed store, hash-verified

4917// Support: 1.x compatibility
4918// Manipulating tables requires a tbody
4919function manipulationTarget( elem, content ) {
4920 return jQuery.nodeName( elem, "table" ) &&
4921 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
4922
4923 elem.getElementsByTagName("tbody")[0] ||
4924 elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
4925 elem;
4926}
4927
4928// Replace/restore the type attribute of script elements for safe DOM manipulation
4929function disableScript( elem ) {

Callers 1

jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected