From a82d898bc1c6901749f89a905e63c9e511baae84 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 14 Feb 2016 12:58:58 +0000 Subject: Include alt text for images if available --- src/main/java/org/zwobble/mammoth/html/HtmlSelfClosingElement.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/org/zwobble/mammoth/html/HtmlSelfClosingElement.java') diff --git a/src/main/java/org/zwobble/mammoth/html/HtmlSelfClosingElement.java b/src/main/java/org/zwobble/mammoth/html/HtmlSelfClosingElement.java index 73f4734..f8bea1d 100644 --- a/src/main/java/org/zwobble/mammoth/html/HtmlSelfClosingElement.java +++ b/src/main/java/org/zwobble/mammoth/html/HtmlSelfClosingElement.java @@ -11,6 +11,10 @@ public class HtmlSelfClosingElement implements HtmlNode { this.attributes = attributes; } + public Map getAttributes() { + return attributes; + } + @Override public void write(StringBuilder builder) { builder.append("<").append(tagName); -- cgit v1.2.3