diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-24 13:47:29 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-03-24 13:47:29 +0100 |
commit | d3785b5042d5cb8699e1b1748317d7032ad3575d (patch) | |
tree | 69cba4d4ce6a7417d6a525dcda7613a987a4e856 /js/vendor/jquery/src/manipulation.js | |
parent | af24d44c8344cbfcdc1d167af6b8c0ebd1fbd377 (diff) |
update npm and bower deps
Diffstat (limited to 'js/vendor/jquery/src/manipulation.js')
-rw-r--r-- | js/vendor/jquery/src/manipulation.js | 12 |
1 files changed, 6 insertions, 6 deletions
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*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\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 |