Skip to content

Commit

Permalink
transcoder: use SVGConstants.SVG_SVG_TAG in CSSTranscodingHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Aug 9, 2023
1 parent a20a2c2 commit 16bf624
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 16bf624

Please sign in to comment.