From: Brion Vibber Date: Mon, 28 Jun 2004 06:44:55 +0000 (+0000) Subject: Quick hack for bug 965878; header with text "Preferences" can cause IE/win X-Git-Tag: 1.5.0alpha1~2757 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=de2fc5ee93979d490fe9ee5a7096f79946a1958d;p=lhc%2Fweb%2Fwiklou.git Quick hack for bug 965878; header with text "Preferences" can cause IE/win to look up the wrong element when requesting 'preferences', which then dies horribly. Better future solution will be to ensure that any IDs used are unique. That's not pretty. --- diff --git a/stylesheets/wikibits.js b/stylesheets/wikibits.js index fbae991b60..e9c786611c 100644 --- a/stylesheets/wikibits.js +++ b/stylesheets/wikibits.js @@ -112,6 +112,7 @@ function diffcheck() { function tabbedprefs() { prefform = document.getElementById('preferences'); if(!prefform || !document.createElement) return; + if(prefform.nodeName == 'A') return; // Occasional IE problem prefform.className = prefform.className + 'jsprefs'; var sections = new Array(); children = prefform.childNodes;