X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/03557759b5338002b09080b222e63cb6f4fe45d0..f4fc9ed779ba87bd6ed11ee48fd84b920f9de30c:/skins/ajax_scripts/javascript_events_api.js?ds=sidebyside diff --git a/skins/ajax_scripts/javascript_events_api.js b/skins/ajax_scripts/javascript_events_api.js index 4e721e2..127ac6f 100644 --- a/skins/ajax_scripts/javascript_events_api.js +++ b/skins/ajax_scripts/javascript_events_api.js @@ -26,7 +26,11 @@ var getCopyOfNode; /* (node) returns a clone of the given node. * the node came from a foreign document (eg. XmlHttpRequest xml reponse) * to inject HMTL code inside tags where innerHtml is read only (IE) */ + var copyPrototype; // (descendant, parent) lightwheight javascript inheritance +if (!history.pushState) { + history.pushState = function(){}; +} (function(){ @@ -219,9 +223,19 @@ function _build_clearSelection() { } } - 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; + } +}); + + + var ELEMENT_NODE = 1; var TEXT_NODE = 3; var _setAttribute;