MCPcopy Index your code
hub / github.com/JsAaron/jQuery / manipulationTarget

Function manipulationTarget

2.1.1/src/manipulation.js:51–58  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

49// Support: 1.x compatibility
50// Manipulating tables requires a tbody
51function manipulationTarget( elem, content ) {
52 return jQuery.nodeName( elem, "table" ) &&
53 jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
54
55 elem.getElementsByTagName("tbody")[0] ||
56 elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
57 elem;
58}
59
60// Replace/restore the type attribute of script elements for safe DOM manipulation
61function disableScript( elem ) {

Callers 1

manipulation.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected