aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-09-17 23:29:02 -0400
committerDave Methvin <dave.methvin@gmail.com>2013-09-19 10:24:22 -0400
commitec3ac9a247ec3132dea3c30ca36cefc217e25441 (patch)
tree8da0245f2cdf20a9ab4adb90e761bd5ea7cc5e2c
parent4671ef15c2d62962048fd4863911146fcc085f26 (diff)
downloadjquery-ec3ac9a247ec3132dea3c30ca36cefc217e25441.tar.gz
jquery-ec3ac9a247ec3132dea3c30ca36cefc217e25441.zip
Fix #14290. Don't throw if text node is appended to table. Close gh-1371.
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index afaaa30ea..e27616fe3 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -52,7 +52,7 @@ require( "./event" );
// 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") ) :