andyash Wrote:Can these issues be sorted soon?I had time to fix the mentioned issues now!
The Bugs you mentioned:
- Internet Explorer doesn't show spoiler link at all in some cases it showed only the full spoiler and ignored the JavaScript completely
- Firefox doesn't showed the link and on buttons the text was missing
The issues were cause because some horrible JavaScript compatibility issues:
Fixing the Firefox bug was easy, after a couple minutes I knew that innerText was the problem, which Firefox seems to handle in a strange way some times, I changed it to innerHTML and Firefox problems were fixed.
With Internet Explorer (version lower than 9) it was more complicated, it was a combination of two issues that Internet Explorer had before version 9. First problem was the way i searched for the spoiler's: I used document.getElementsByClassName which was a very easy and simple way which worked much better than the old loop search I used for it. But Internet Explorer doesn't supports it and throws an error when using it.
To circumvent this I used “The Ultimate GetElementsByClassName“ by Rober Nyman and this problem was fixed for god.
Now I ran into another issue: Internet Explorer doesn't support addEventListener but has attachEvent instead, so I added a simple try - catch, if addEventListener doesn't work it will use attachEvent instead. This isn't maybe a good solution and I know that this maybe causes some problems in more unknown Browsers like Opera but for now it is a acceptable and simple solution.
I will improve the JavaScript more when I have more time and can concentrate more on the topic. See 1.6 like a quick'n'dirty update, until I've time to think of a better solution for mentioned problems.
Thanks, ePirat