mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added a className tweak. All core and selector tests now pass.
This commit is contained in:
parent
b147039acc
commit
b09043fbf6
@ -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); },
|
||||
|
Loading…
Reference in New Issue
Block a user