We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c7bce commit ab54b73Copy full SHA for ab54b73
src/main/java/com/gargoylesoftware/css/dom/CSSStyleDeclarationImpl.java
@@ -22,6 +22,7 @@
22
23
import com.gargoylesoftware.css.parser.CSSOMParser;
24
import com.gargoylesoftware.css.util.LangUtils;
25
+import com.gargoylesoftware.css.util.ThrowCssExceptionErrorHandler;
26
27
/**
28
* Implementation of CSSStyleDeclaration.
@@ -77,6 +78,7 @@ public String getCssText() {
77
78
public void setCssText(final String cssText) throws DOMException {
79
try {
80
final CSSOMParser parser = new CSSOMParser();
81
+ parser.setErrorHandler(ThrowCssExceptionErrorHandler.INSTANCE);
82
properties_.clear();
83
parser.parseStyleDeclaration(this, cssText);
84
}
0 commit comments