public interface FormElement extends Element
Provides access to the contained control elements and the attributes of the form element.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
action()
Returns the value of the action attribute of this form.
|
java.util.List<FormControlElement> |
controls()
Returns an immutable list of the form controls or an empty list if the form got no controls
on it.
|
java.lang.String |
method()
Returns the value of the method attribute of this form.
|
java.lang.String |
name()
Returns the value of the name attribute of this form.
|
void |
reset()
Restores default values of the elements on the form.
|
void |
submit()
Submits the form represented by the element.
|
attributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttributeappendChild, children, click, document, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, typeaddEventListener, dispatch, eventListeners, removeEventListenerfindElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagNamejava.lang.String action()
java.lang.IllegalStateException - when the document this instance belongs to is closedjava.lang.String name()
java.lang.IllegalStateException - when the document this instance belongs to is closedjava.lang.String method()
java.lang.IllegalStateException - when the document this instance belongs to is closedvoid reset()
java.lang.IllegalStateException - when the document this instance belongs to is closedvoid submit()
java.lang.IllegalStateException - when the document this instance belongs to is closedjava.util.List<FormControlElement> controls()
java.lang.IllegalStateException - when the document this instance belongs to is closed