diff --git a/lib/CSSStyleDeclaration.js b/lib/CSSStyleDeclaration.js index bded9a44..d7ebb6e5 100644 --- a/lib/CSSStyleDeclaration.js +++ b/lib/CSSStyleDeclaration.js @@ -187,6 +187,7 @@ Object.defineProperties(CSSStyleDeclaration.prototype, { set: function(value) { var i; this._values = {}; + value = value.replace(/;+/gi, ';'); Array.prototype.splice.call(this, 0, this._length); this._importants = {}; var dummyRule;