Skip to content

Commit c0c3189

Browse files
committed
Test css4j 6.0, css4j-dom4j 6.0
1 parent f809596 commit c0c3189

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ci/io/github/css4j/ci/SampleSitesIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
import io.sf.carte.doc.style.css.property.CSSPropertyValueException;
108108
import io.sf.carte.doc.style.css.property.PropertyDatabase;
109109
import io.sf.carte.doc.style.css.property.StyleValue;
110+
import io.sf.carte.doc.style.css.util.ExceptionErrorHandler;
110111
import io.sf.carte.net.NetCache;
111112
import io.sf.carte.util.Diff;
112113
import nu.validator.htmlparser.common.XmlViolationPolicy;
@@ -859,6 +860,7 @@ private boolean checkDeclarationRule(CSSDeclarationRule rule, int sheetIndex, in
859860

860861
private AbstractCSSRule parseRule(String serializedText) throws DOMException {
861862
AbstractCSSStyleSheet sheet = agent.getDOMImplementation().createStyleSheet(null, null);
863+
sheet.setErrorHandler(new ExceptionErrorHandler());
862864
try {
863865
sheet.parseStyleSheet(new StringReader(serializedText));
864866
} catch (IOException e) {

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<version>2.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111
<properties>
12-
<css4j.version>5.3.1</css4j.version>
13-
<css4jDom4j.version>5.3</css4jDom4j.version>
12+
<css4j.version>6.0</css4j.version>
13+
<css4jDom4j.version>6.0</css4jDom4j.version>
1414
<slf4j.version>2.0.16</slf4j.version>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
</properties>

0 commit comments

Comments
 (0)