Share

TafelTree view javascript

Tracker: Bugs

5 Javascript Errors on Netscape and Mozilla - ID: 1714841
Last Update: Tracker Item Submitted ( vladog )

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


Vladimir Georgiev ( vladog ) - 2007-05-08 10:24

5

Open

None

Nobody/Anonymous

Interface (example)

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.