Commit b09043fb authored by John Resig's avatar John Resig

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

parent b147039a
......@@ -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); },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment