fix warning in native mode about parser not found

This commit is contained in:
Athou
2024-08-13 15:57:46 +02:00
parent 77b6cf75a5
commit f2c6734c79
2 changed files with 33 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ import org.w3c.css.sac.InputSource;
import org.w3c.dom.css.CSSStyleDeclaration;
import com.steadystate.css.parser.CSSOMParser;
import com.steadystate.css.parser.SACParserCSS3;
import jakarta.inject.Singleton;
import lombok.RequiredArgsConstructor;
@@ -149,7 +150,7 @@ public class FeedEntryContentCleaningService {
}
private CSSOMParser buildCssParser() {
CSSOMParser parser = new CSSOMParser();
CSSOMParser parser = new CSSOMParser(new SACParserCSS3());
parser.setErrorHandler(new ErrorHandler() {
@Override