Don't inject style elements using innerHTML as they will go away in IE. Fixes #5977.
[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,