Skip to content

Commit 01baa87

Browse files
committed
deprecated method HtmlForm.getElements() removed
1 parent ce97d3f commit 01baa87

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<action type="add" dev="RhinoTeam">
1313
core-js: Named capture groups in RegularExpressions now supported.
1414
</action>
15+
<action type="remove" dev="rbri">
16+
Deprecated method HtmlForm.getElements() removed.
17+
</action>
1518
<action type="remove" dev="rbri">
1619
Deprecated method WebRequest.setRefererlHeader(URL) removed.
1720
</action>

src/main/java/org/htmlunit/html/HtmlForm.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -555,16 +555,6 @@ private <E extends HtmlElement> List<E> getFormElementsByAttribute(
555555
return list;
556556
}
557557

558-
/**
559-
* @return returns a list of all form controls contained in the &lt;form&gt; element or referenced by formId
560-
* but ignoring elements that are contained in a nested form
561-
* @deprecated as of version 4.4.0; use {@link #getFormElements()}, {@link #getElementsJS()} instead
562-
*/
563-
@Deprecated
564-
public List<HtmlElement> getElements() {
565-
return getElements(htmlElement -> SUBMITTABLE_TAG_NAMES.contains(htmlElement.getTagName()));
566-
}
567-
568558
/**
569559
* @return A List containing all form controls in the form.
570560
* The form controls in the returned collection are in the same order

0 commit comments

Comments
 (0)