Skip to content

Commit

Permalink
Fix #14290. Don't throw if text node is appended to table. Close gh-1371
Browse files Browse the repository at this point in the history
.
  • Loading branch information
dmethvin committed Sep 19, 2013
1 parent 4671ef1 commit ec3ac9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manipulation.js
Expand Up @@ -52,7 +52,7 @@ require( "./event" );
// Manipulating tables requires a tbody // Manipulating tables requires a tbody
function manipulationTarget( elem, content ) { function manipulationTarget( elem, content ) {
return jQuery.nodeName( elem, "table" ) && return jQuery.nodeName( elem, "table" ) &&
jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?


elem.getElementsByTagName("tbody")[0] || elem.getElementsByTagName("tbody")[0] ||
elem.appendChild( elem.ownerDocument.createElement("tbody") ) : elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
Expand Down

0 comments on commit ec3ac9a

Please sign in to comment.