aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-13 03:14:00 -0500
committerjeresig <jeresig@gmail.com>2010-02-13 03:14:00 -0500
commit99e7560808679b5044dbefb2b7124bb019fdbda2 (patch)
treea034f2f1b79b189ffebbcb122d594b94ff40c1a6 /src/support.js
parent726fda08bea7bbd72d73be4563aba855c63966fe (diff)
downloadjquery-99e7560808679b5044dbefb2b7124bb019fdbda2.tar.gz
jquery-99e7560808679b5044dbefb2b7124bb019fdbda2.zip
Make sure that we don't try to use a detached node (that was in a fragment) as a fragment in IE. Fixes #5829.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/support.js b/src/support.js
index befc53272..c9ff58c36 100644
--- a/src/support.js
+++ b/src/support.js
@@ -56,6 +56,8 @@
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
+ parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
+
// Will be defined later
checkClone: false,
scriptEval: false,