It seems that the support for DOM nodes inside Jasmine's custom matchers message object really depends on the reporter the user is employing: jasmine/jasmine#791
imagediff could probably account for that so that for CLI reporters a string is output instead. Right now the karma reporter for example crashes as indexOf() is not supported for a DOM node.