Skip to content

Css errors are noisy even with SilentCssErrorHandler enabled #378

@skyhirider

Description

@skyhirider

I believe there was a regression introduced in 2.52 that is not present in 2.51 - some parsing errors are thrown and show even when silenced handlers are enabled.

On 2.51 the log is silent, on 2.52 I see exceptions in the error log which is really messy. I don't want to disable error messages completely but silencing the webclient has no effect.

catch (final Exception e) {
if (LOG.isErrorEnabled()) {
LOG.error("Error while parsing style value '" + styleAttribute + "'", e);
}
}

Link to git blame https://github.com/HtmlUnit/htmlunit/blame/master/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java#L284

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions