diff --git a/src/main/java/org/jsoup/safety/Safelist.java b/src/main/java/org/jsoup/safety/Safelist.java index abfda3b076..d1f275df39 100644 --- a/src/main/java/org/jsoup/safety/Safelist.java +++ b/src/main/java/org/jsoup/safety/Safelist.java @@ -597,7 +597,12 @@ private boolean isValidAnchor(String value) { return value.startsWith("#") && !value.matches(".*\\s.*"); } - Attributes getEnforcedAttributes(String tagName) { + /** + Gets the Attributes that should be enforced for a given tag + * @param tagName the tag + * @return the attributes that will be enforced; empty if none are set for the given tag + */ + public Attributes getEnforcedAttributes(String tagName) { Attributes attrs = new Attributes(); TagName tag = TagName.valueOf(tagName); if (enforcedAttributes.containsKey(tag)) {