Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 557 Bytes

File metadata and controls

32 lines (22 loc) · 557 Bytes

Repilot Patch

                it.remove();

Developer Patch

                it.remove();

Context

--- bug/Jsoup-57/src/main/java/org/jsoup/nodes/Attributes.java

+++ fix/Jsoup-57/src/main/java/org/jsoup/nodes/Attributes.java

@@ -122,7 +122,7 @@

         for (Iterator<String> it = attributes.keySet().iterator(); it.hasNext(); ) {
             String attrKey = it.next();
             if (attrKey.equalsIgnoreCase(key))
-                attributes.remove(attrKey);
+                it.remove();
         }
     }

Note