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 1 changed file with 4 additions and 1 deletion.
@@ -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.