From 2e79d8d539ebc1830553a49a8080d0356c9d9531 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 15 Apr 2014 19:11:00 +0200 Subject: Move more IE<9 specific code to legacy_browser --- program/js/common.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'program/js/common.js') diff --git a/program/js/common.js b/program/js/common.js index ed9488b2c..3f82b6df8 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -596,20 +596,6 @@ if (!String.prototype.startsWith) { }; } -// Make getElementById() case-sensitive on IE -if (bw.ie) { - document._getElementById = document.getElementById; - document.getElementById = function(id) { - var i = 0, obj = document._getElementById(id); - - if (obj && obj.id != id) - while ((obj = document.all[i]) && obj.id != id) - i++; - - return obj; - } -} - // jQuery plugin to emulate HTML5 placeholder attributes on input elements jQuery.fn.placeholder = function(text) { return this.each(function() { -- cgit v1.2.3