From ca7e6afc99703003465bf3b63dc7aecda1be6fe5 Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 12 Sep 2008 17:31:23 +0000 Subject: - getElementById() case-sensitive hack for IE git-svn-id: https://svn.roundcube.net/trunk@1779 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/common.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index 063657f89..649779746 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -631,3 +631,29 @@ RegExp.escape = function(str) { return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1'); } + + +// Make getElementById() case-sensitive on IE +if (bw.ie) + { + document._getElementById = document.getElementById; + document.getElementById = function(id) + { + var a = []; + var o = document._getElementById(id); + + while (o.id != id) + { + a.push({i:o.id,e:o}); + o.id = ''; + o = document._getElementById(id); + if (!o) return o; + } + + for (j=0,jj=a.length; j