css4j v2.2.0
- Previous versions are vulnerable to DoS attacks, and the new protections use the new
CSSDocument.isAuthorizedOrigin(URL)
method. - The method
ErrorHandler.hasErrors()
now returns true if there are I/O errors. Those errors were previously considered transient, and therefore weren't appearing there. - On attribute nodes,
getTextContent()
now returns the attribute value instead of the empty string.
These new behaviors mean that this release is not fully backwards-compatible with 2.1, so the minor version was bumped to 2.2.