jsPax News

2009-01-31 new release

bugfix

Today I have fixed an old problem. When the browser did neither support XMLHttpRequest nor document.getElementsByTagName(), then the old package.js would fall back to document.write(). This is great at page loading time, but as soon as you have deppending packages or try to load packages on demand, this breaks.

It wasn't a big problem since there are only very fiew broswers arround that support JavaScript but neither XMLHttpRequest nor document.getElementsByTagName(). I have fixed this by providing a slow emulation of document.getElementByTagName().

The emulation recurses through all elements on the page and it is called each time a package is loaded. So this is really slow, but at least it works.

added comments

Since I was there at the source code I put in some comments to improve maintainability.

Valid XHTML 1.0 Strict Valid CSS!