diff options
author | John Resig <jeresig@gmail.com> | 2007-07-08 16:35:48 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-07-08 16:35:48 +0000 |
commit | feb475d9b1f7fc0a1b6efa746e952893014ff771 (patch) | |
tree | ad23da7b7a500a9ef8dafc0f499dbeb77b295869 /build | |
parent | b83a6b7a323d63280fe325b06e1c38d26b5031a9 (diff) | |
download | jquery-feb475d9b1f7fc0a1b6efa746e952893014ff771.tar.gz jquery-feb475d9b1f7fc0a1b6efa746e952893014ff771.zip |
Attribute values should be JS strings.
Diffstat (limited to 'build')
-rw-r--r-- | build/runtest/env.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build/runtest/env.js b/build/runtest/env.js index 7a1352af1..648332462 100644 --- a/build/runtest/env.js +++ b/build/runtest/env.js @@ -206,8 +206,7 @@ var window = this; this.style = {}; // Load CSS info - var styles = (new String(this.getAttribute("style") || "")) - .split(/\s*;\s*/); + var styles = (this.getAttribute("style") || "").split(/\s*;\s*/); for ( var i = 0; i < styles.length; i++ ) { var style = styles[i].split(/\s*:\s*/); @@ -348,7 +347,7 @@ var window = this; getAttribute: function(name){ return this._dom.hasAttribute(name) ? - this._dom.getAttribute(name) : + new String( this._dom.getAttribute(name) ) : null; }, setAttribute: function(name,value){ |