Skip to content
Permalink
Browse files

Added a className tweak. All core and selector tests now pass.

  • Loading branch information
jeresig committed Jul 9, 2007
1 parent b147039 commit b09043fbf6d98adfd22f85a347256f545afb2c11
Showing with 4 additions and 1 deletion.
  1. +4 −1 build/runtest/env.js
@@ -357,7 +357,10 @@ var window = this;
set selected(val) { return this.setAttribute("selected",val); },

get className() { return this.getAttribute("class") || ""; },
set className(val) { return this.setAttribute("class",val); },
set className(val) {
return this.setAttribute("class",
val.replace(/(^\s*|\s*$)/g,""));
},

get type() { return this.getAttribute("type") || ""; },
set type(val) { return this.setAttribute("type",val); },

0 comments on commit b09043f

Please sign in to comment.
You can’t perform that action at this time.