Skip to content
Permalink
Browse files

Attribute values should be JS strings.

  • Loading branch information
jeresig committed Jul 8, 2007
1 parent b83a6b7 commit feb475d9b1f7fc0a1b6efa746e952893014ff771
Showing with 2 additions and 3 deletions.
  1. +2 −3 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){

0 comments on commit feb475d

Please sign in to comment.
You can’t perform that action at this time.