diff options
author | John Resig <jeresig@gmail.com> | 2007-07-09 00:02:32 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-07-09 00:02:32 +0000 |
commit | b09043fbf6d98adfd22f85a347256f545afb2c11 (patch) | |
tree | 188c605ee4f3fb0181a7618c636e33aeb7cbe0bc /build | |
parent | b147039acc32884b50b955ebd94eeaa430713786 (diff) | |
download | jquery-b09043fbf6d98adfd22f85a347256f545afb2c11.tar.gz jquery-b09043fbf6d98adfd22f85a347256f545afb2c11.zip |
Added a className tweak. All core and selector tests now pass.
Diffstat (limited to 'build')
-rw-r--r-- | build/runtest/env.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/runtest/env.js b/build/runtest/env.js index f3afb1959..bf53efa01 100644 --- a/build/runtest/env.js +++ b/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); }, |