From 31766a8b4729d62587ed9a30c304f242ad9442d6 Mon Sep 17 00:00:00 2001 From: pbezliapovich <156820020+pbezliapovich@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:58:31 +0100 Subject: [PATCH] feat: Changed image comparison logic. (#35) #DEV-11612 Co-authored-by: Pavel Bezliapovich --- src/main/java/org/outerj/daisy/diff/html/dom/ImageNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/outerj/daisy/diff/html/dom/ImageNode.java b/src/main/java/org/outerj/daisy/diff/html/dom/ImageNode.java index 9430bc3..bb8fa54 100644 --- a/src/main/java/org/outerj/daisy/diff/html/dom/ImageNode.java +++ b/src/main/java/org/outerj/daisy/diff/html/dom/ImageNode.java @@ -27,7 +27,7 @@ public class ImageNode extends TextNode { private AttributesImpl attributes; public ImageNode(TagNode parent, Attributes attrs) { - super(parent, "" + attrs.getValue("src").toLowerCase() + ""); + super(parent, "" + (attrs.getValue("md5") != null ? attrs.getValue("md5").toLowerCase() : attrs.getValue("src").toLowerCase()) + ""); attributes = new AttributesImpl(attrs); }