From 75a0b4a73fa909905e16e1f9ff0d352796e3ef46 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 17 Sep 2013 23:29:02 -0400 Subject: [PATCH] Fix #14290. Don't throw if text node is appended to table. Close gh-1371. (cherry picked from commit ec3ac9a247ec3132dea3c30ca36cefc217e25441) --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index ee1a554c0..30ba48430 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -105,7 +105,7 @@ function fixDefaultChecked( elem ) { // Manipulating tables requires a tbody function manipulationTarget( elem, content ) { 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.appendChild( elem.ownerDocument.createElement("tbody") ) :