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); }