X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/2705537f22c113afee8532968a6ad06a0c9c9268..a75be5ed39db7d2d87f5184ea30ce17ec8b4c5ab:/skins/ajax_scripts/javascript_events_api.js diff --git a/skins/ajax_scripts/javascript_events_api.js b/skins/ajax_scripts/javascript_events_api.js index a1b9268..2083018 100644 --- a/skins/ajax_scripts/javascript_events_api.js +++ b/skins/ajax_scripts/javascript_events_api.js @@ -255,11 +255,14 @@ buildMetaFunctions(); addListener(window, 'load', function(evt) { // html5 facade - if (!document.body.classList) { - var nop = function(){}; - var fakeDOMTokenList = {'length':0, 'item':nop, 'contains':nop, 'add':nop, 'remove':nop, 'toggle':nop}; - Element.prototype.classList = fakeDOMTokenList; + try { + if (!document.body.classList) { + var nop = function(){}; + var fakeDOMTokenList = {'length':0, 'item':nop, 'contains':nop, 'add':nop, 'remove':nop, 'toggle':nop}; + Element.prototype.classList = fakeDOMTokenList; + } } + catch (e) {} }); @@ -292,7 +295,7 @@ getCopyOfNode = function(node) { } }; -if (browser.isIE10max) { +if (browser.isIE7max) { _setAttribute = function(e, name, value) { // workarround IE lack of dom implementation. switch(name.toLowerCase()) {