mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 17:14:58 -05:00
Fix #14290. Don't throw if text node is appended to table. Close gh-1371.
(cherry picked from commit ec3ac9a247)
This commit is contained in:
@@ -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") ) :
|
||||
|
||||
Reference in New Issue
Block a user