@return A List containing all form controls in the form. The form controls in the returned collection are in the same order in which they appear in the form by following a preorder, depth-first traversal of the tree. This is called tree order. Only the following eleme
()
| 559 | * button, fieldset, input, object, output, select, textarea. |
| 560 | */ |
| 561 | public List<HtmlElement> getFormElements() { |
| 562 | return getElements(htmlElement -> { |
| 563 | final String tagName = htmlElement.getTagName(); |
| 564 | return HtmlButton.TAG_NAME.equals(tagName) |
| 565 | || HtmlFieldSet.TAG_NAME.equals(tagName) |
| 566 | || HtmlInput.TAG_NAME.equals(tagName) |
| 567 | || HtmlObject.TAG_NAME.equals(tagName) |
| 568 | || HtmlOutput.TAG_NAME.equals(tagName) |
| 569 | || HtmlSelect.TAG_NAME.equals(tagName) |
| 570 | || HtmlTextArea.TAG_NAME.equals(tagName); |
| 571 | }); |
| 572 | } |
| 573 | |
| 574 | /** |
| 575 | * This is the backend for the getElements() javascript function of the form. |
no test coverage detected