svn: /web/doc-editor/trunk/ index.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Wed, 09 Nov 2011 14:31:24 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=318948

Log:
Fix IE9 login page with gooh too ! Re-thanks ;)

Changed paths:
    U   web/doc-editor/trunk/index.php

Modified: web/doc-editor/trunk/index.php
===================================================================
--- web/doc-editor/trunk/index.php	2011-11-09 14:07:02 UTC (rev 318947)
+++ web/doc-editor/trunk/index.php	2011-11-09 14:31:24 UTC (rev 318948)
@@ -102,6 +102,20 @@
     google.load('friendconnect', '0.8');
 }

+// Fix for IE9
+if (typeof Range.prototype.createContextualFragment == \"undefined\") {
+    Range.prototype.createContextualFragment = function(html) {
+        var doc = this.startContainer.ownerDocument;
+        var container = doc.createElement(\"div\");
+        container.innerHTML = html;
+        var frag = doc.createDocumentFragment(), n;
+        while ( (n = container.firstChild) ) {
+            frag.appendChild(n);
+        }
+        return frag;
+    };
+}
+
 ");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.