svn: /web/doc-editor/trunk/ index.php
| From: | Yannick Torres | Date: | Wed, 09 Nov 2011 14:31:24 +0000 |
| Subject: | svn: /web/doc-editor/trunk/ index.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2211@lists.php.net to get a copy of this message | ||
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;
+ };
+}
+
");