Team:Goettingen/suplement/scripts ie ff patch
From 2013.igem.org
(Difference between revisions)
Demarcia (Talk | contribs)
(Created page with "document.getElementsByClassName = function(cl) { var retnode = []; var elem = this.getElementsByTagName('*'); for (var i = 0; i < elem.length; i++) { if((' ' + elem[i]....")
Newer edit →
(Created page with "document.getElementsByClassName = function(cl) { var retnode = []; var elem = this.getElementsByTagName('*'); for (var i = 0; i < elem.length; i++) { if((' ' + elem[i]....")
Newer edit →
Revision as of 19:54, 24 June 2013
document.getElementsByClassName = function(cl) {
var retnode = []; var elem = this.getElementsByTagName('*'); for (var i = 0; i < elem.length; i++) { if((' ' + elem[i].className + ' ').indexOf(' ' + cl + ' ') > -1) retnode.push(elem[i]); } return retnode;
};
var getNextElementSibling = function (ob){
do {ob = ob.nextSibling; }while (ob && ob.nodeType !== 1); return ob; }