( elem, content )
| 49 | // Support: 1.x compatibility |
| 50 | // Manipulating tables requires a tbody |
| 51 | function 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 |
| 61 | function disableScript( elem ) { |