MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / manipulationTarget

Function manipulationTarget

camera/jquery.js:4920–4927  ·  view source on GitHub ↗
( elem, content )

Source from the content-addressed store, hash-verified

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

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected