Skip to content

Commit 31766a8

Browse files
feat: Changed image comparison logic. (#35)
#DEV-11612 Co-authored-by: Pavel Bezliapovich <[email protected]>
1 parent 72a3163 commit 31766a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/outerj/daisy/diff/html/dom/ImageNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ImageNode extends TextNode {
2727
private AttributesImpl attributes;
2828

2929
public ImageNode(TagNode parent, Attributes attrs) {
30-
super(parent, "<img>" + attrs.getValue("src").toLowerCase() + "</img>");
30+
super(parent, "<img>" + (attrs.getValue("md5") != null ? attrs.getValue("md5").toLowerCase() : attrs.getValue("src").toLowerCase()) + "</img>");
3131
attributes = new AttributesImpl(attrs);
3232
}
3333

0 commit comments

Comments
 (0)