roojs-core-debug.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 7 Jul 2011 06:08:03 +0000 (14:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 7 Jul 2011 06:08:03 +0000 (14:08 +0800)
roojs-core-debug.js

index 940dc63..9924b26 100644 (file)
@@ -4025,7 +4025,22 @@ Roo.lib.Easing = {
  * Fork - LGPL
  * <script type="text/javascript">
  */
+
+
+// nasty IE9 hack - what a pile of crap that is..
+
+ if (typeof Range.prototype.createContextualFragment == "undefined") {
+    Range.prototype.createContextualFragment = function (html) {
+        var doc = window.document;
+        var container = doc.createElement("div");
+        container.innerHTML = html;
+        var frag = doc.createDocumentFragment(), n;
+        while ((n = container.firstChild)) {
+            frag.appendChild(n);
+        }
+        return frag;
+    };
+}
 
 /**
  * @class Roo.DomHelper