Menu

#1 Javascript Errors on Netscape and Mozilla

open
nobody
5
2007-05-08
2007-05-08
No

Guys,

I have found two bugs that result in Javascript errors in Netscape 8, Mozilla, and maybe other browsers too.

Here they are:
1) In Tree.js, line 57:
TafelTree.scriptFragment = /[\s]*<[/]?[ul|li].*>.*/ig;
needs to be substituted with:
TafelTree.scriptFragment = /[\s]*<[\/]?[ul|li].*>.*/ig;
The "/" character inside the regular expression needs to be escaped (with "\"), because it raises the javascript error: "unterminated character class".

2) Tree.js, lines 726 and 730:
this.div.style.float = ...
needs to become:
this.div.style.cssFloat = ...
because the CSS "float" property is changed differently using Javascript (i.e. through "cssFloat"), and using "float" gives the "missing name after . operator" error.

Regards,
Vladimir

Discussion


Log in to post a comment.