Skip to content

Commit 2d6e23b

Browse files
author
Christoph Burgmer
committed
Fix parse error in PhantomJS 1.9.2 and possibly some versions of WebKit. Fixes NV#52
1 parent 0dc20e7 commit 2d6e23b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CSSStyleDeclaration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ CSSOM.CSSStyleDeclaration.prototype = {
123123
return properties.join(" ");
124124
},
125125

126-
set cssText(cssText){
126+
set cssText(text){
127127
var i, name;
128128
for (i = this.length; i--;) {
129129
name = this[i];
@@ -132,7 +132,7 @@ CSSOM.CSSStyleDeclaration.prototype = {
132132
Array.prototype.splice.call(this, 0, this.length);
133133
this._importants = {};
134134

135-
var dummyRule = CSSOM.parse('#bogus{' + cssText + '}').cssRules[0].style;
135+
var dummyRule = CSSOM.parse('#bogus{' + text + '}').cssRules[0].style;
136136
var length = dummyRule.length;
137137
for (i = 0; i < length; ++i) {
138138
name = dummyRule[i];

0 commit comments

Comments
 (0)