Displaying 1 result from an estimated 1 matches for "classnametoremove".
2005 Nov 09
1
Element.removeClassName(..) - bug or incorrect usage?
..., instead of a space, the remaining classes are
separated by a "," and IE and FF do not apply these remaining classes.
The problem is better represented at
http://katdare.com/temp/remove_classname.html
Now, in prototype.js (1.4.0_rc1), if I change the following snippet
remove: function(classNameToRemove) {
    if (!this.include(classNameToRemove)) return;
    this.set(this.select(function(className) {
      return className != classNameToRemove;
    }));
  },
to
remove: function(classNameToRemove) {
    if (!this.include(classNameToRemove)) return;
    this.set(this.select(function(className) {...