Attribute values should be JS strings.
This commit is contained in:
parent
b83a6b7a32
commit
feb475d9b1
1 changed files with 2 additions and 3 deletions
|
@ -206,8 +206,7 @@ var window = this;
|
||||||
this.style = {};
|
this.style = {};
|
||||||
|
|
||||||
// Load CSS info
|
// Load CSS info
|
||||||
var styles = (new String(this.getAttribute("style") || ""))
|
var styles = (this.getAttribute("style") || "").split(/\s*;\s*/);
|
||||||
.split(/\s*;\s*/);
|
|
||||||
|
|
||||||
for ( var i = 0; i < styles.length; i++ ) {
|
for ( var i = 0; i < styles.length; i++ ) {
|
||||||
var style = styles[i].split(/\s*:\s*/);
|
var style = styles[i].split(/\s*:\s*/);
|
||||||
|
@ -348,7 +347,7 @@ var window = this;
|
||||||
|
|
||||||
getAttribute: function(name){
|
getAttribute: function(name){
|
||||||
return this._dom.hasAttribute(name) ?
|
return this._dom.hasAttribute(name) ?
|
||||||
this._dom.getAttribute(name) :
|
new String( this._dom.getAttribute(name) ) :
|
||||||
null;
|
null;
|
||||||
},
|
},
|
||||||
setAttribute: function(name,value){
|
setAttribute: function(name,value){
|
||||||
|
|
Loading…
Add table
Reference in a new issue