Make sure that we don't try to use a detached node (that was in a fragment) as a...
[jquery.git] / src / support.js
index befc532..c9ff58c 100644 (file)
@@ -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,