From d3785b5042d5cb8699e1b1748317d7032ad3575d Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 24 Mar 2016 13:47:29 +0100 Subject: update npm and bower deps --- js/vendor/jquery/src/manipulation.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/vendor/jquery/src/manipulation.js') diff --git a/js/vendor/jquery/src/manipulation.js b/js/vendor/jquery/src/manipulation.js index b65699bac..afd5091dd 100644 --- a/js/vendor/jquery/src/manipulation.js +++ b/js/vendor/jquery/src/manipulation.js @@ -38,14 +38,14 @@ var rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*\s*$/g; +// Manipulating tables requires a tbody function manipulationTarget( elem, content ) { - if ( jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + return jQuery.nodeName( elem, "table" ) && + jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? - return elem.getElementsByTagName( "tbody" )[ 0 ] || elem; - } - - return elem; + elem.getElementsByTagName( "tbody" )[ 0 ] || + elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) : + elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation -- cgit v1.2.3