From 16bf62454b0b54f276b267df9219d3f89bc4ee82 Mon Sep 17 00:00:00 2001 From: Carlos Amengual Date: Tue, 8 Aug 2023 20:59:45 +0200 Subject: [PATCH] transcoder: use `SVGConstants.SVG_SVG_TAG` in `CSSTranscodingHelper` --- .../sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java b/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java index c7cf2484d..23e389036 100644 --- a/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java +++ b/echosvg-transcoder/src/main/java/io/sf/carte/echosvg/transcoder/util/CSSTranscodingHelper.java @@ -624,7 +624,7 @@ private void transcodeDOMDocument(DOMDocument document, TranscoderOutput output, } // The svg root must be a SVG element - if (!"svg".equals(svgRoot.getLocalName())) { + if (!SVGConstants.SVG_SVG_TAG.equals(svgRoot.getLocalName())) { docType = null; if (selector == null) { svgRoot = document.getElementsByTagNameNS("*", "svg").item(0);