public class HTMLFormElement extends HTMLElement implements org.htmlunit.corejs.javascript.Function
HTMLFormElement
.HTMLElement.ProxyDomNode
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
HTMLFormElement() |
Modifier and Type | Method and Description |
---|---|
Object |
call(org.htmlunit.corejs.javascript.Context cx,
org.htmlunit.corejs.javascript.Scriptable scope,
org.htmlunit.corejs.javascript.Scriptable thisObj,
Object[] args) |
boolean |
checkValidity()
Checks whether the element has any constraints and whether it satisfies them.
|
org.htmlunit.corejs.javascript.Scriptable |
construct(org.htmlunit.corejs.javascript.Context cx,
org.htmlunit.corejs.javascript.Scriptable scope,
Object[] args) |
boolean |
dispatchEvent(Event event)
Dispatches an event into the event system (standards-conformant browsers only).
|
Object |
get(int index,
org.htmlunit.corejs.javascript.Scriptable start)
Returns the specified indexed property.
|
String |
getAction()
Returns the value of the property
action . |
HTMLFormControlsCollection |
getElements()
Returns the value of the property
elements . |
String |
getEncoding()
Returns the value of the property
encoding . |
String |
getEnctype()
Returns the value of the property
enctype . |
HtmlForm |
getHtmlForm() |
int |
getLength()
Returns the value of the property
length . |
String |
getMethod()
Returns the value of the property
method . |
String |
getName()
Returns the value of the property
name . |
protected org.htmlunit.corejs.javascript.ScriptableObject |
getOwnPropertyDescriptor(org.htmlunit.corejs.javascript.Context cx,
Object id)
Overridden to allow the retrieval of certain form elements by ID or name.
|
String |
getRel()
Returns the value of the rel property.
|
DOMTokenList |
getRelList()
Returns the
relList attribute. |
String |
getTarget()
Returns the value of the property
target . |
protected Object |
getWithPreemption(String name)
Overridden to allow the retrieval of certain form elements by ID or name.
|
boolean |
has(String name,
org.htmlunit.corejs.javascript.Scriptable start)
Overridden to allow the retrieval of certain form elements by ID or name.
|
boolean |
isNoValidate()
Returns the value of the property
novalidate . |
org.htmlunit.corejs.javascript.Scriptable |
iterator() |
void |
jsConstructor()
JavaScript constructor.
|
void |
requestSubmit(Object submitter)
Submits the form by submitted using a specific submit button.
|
void |
reset()
Resets this form.
|
void |
setAction(String action)
Sets the value of the property
action . |
void |
setEncoding(String encoding)
Sets the value of the property
encoding . |
void |
setEnctype(String enctype)
Sets the value of the property
enctype . |
void |
setMethod(String method)
Sets the value of the property
method . |
void |
setName(String name)
Sets the value of the property
name . |
void |
setNoValidate(boolean value)
Sets the value of the property
novalidate . |
void |
setRel(String rel)
Sets the rel property.
|
void |
setRelList(Object rel)
Sets the relList property.
|
void |
setTarget(String target)
Sets the value of the property
target . |
void |
submit()
Submits the form (at the end of the current script execution).
|
blur, click, focus, getAccessKey, getAlign, getAttributeNode, getAutofocus, getBoundingClientRect, getCh, getChOff, getContentEditable, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getEnterKeyHint, getForm, getInnerText, getLang, getLocalName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetParent_js, getOffsetTop, getOffsetWidth, getOnabort, getOnanimationcancel, getOnanimationend, getOnanimationiteration, getOnanimationstart, getOnauxclick, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOngotpointercapture, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnresize, getOnscroll, getOnscrollend, getOnseeked, getOnseeking, getOnselect, getOnselectionchange, getOnselectstart, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOntransitioncancel, getOntransitionend, getOntransitionrun, getOntransitionstart, getOnvolumechange, getOnwaiting, getOnwheel, getOuterText, getParentHTMLElement, getPosX, getPosY, getPrefix, getStyle, getTabIndex, getTitle, getVAlign, getValue, getWidthOrHeight, isAncestorOfEventTarget, isDisabled, isEndTagForbidden, isHidden, isIsContentEditable, isLowerCaseInOuterHtml, isSpellcheck, setAccessKey, setAlign, setAttribute, setAutofocus, setCh, setChOff, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setEnterKeyHint, setHidden, setInnerText, setLang, setOnabort, setOnanimationcancel, setOnanimationend, setOnanimationiteration, setOnanimationstart, setOnauxclick, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOngotpointercapture, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnresize, setOnscroll, setOnscrollend, setOnseeked, setOnseeking, setOnselect, setOnselectionchange, setOnselectstart, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOntransitioncancel, setOntransitionend, setOntransitionrun, setOntransitionstart, setOnvolumechange, setOnwaiting, setOnwheel, setOuterText, setSpellcheck, setStyle, setTabIndex, setTextContent, setTitle, setVAlign, setValue, setWidthOrHeight, toString
after, append, before, closest, createAttributesObject, createEventHandler, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getHTML, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isDisplayNone, matches, mozMatchesSelector, prepend, printChildren, printNode, querySelector, querySelectorAll, releaseCapture, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceChildren, replaceWith, scroll, scrollBy, scrollIntoView, scrollIntoViewIfNeeded, scrollTo, setAttributeNode, setAttributeNS, setCapture, setClassName_js, setId, setInnerHTML, setOnbeforecopy, setOnbeforecut, setOnbeforepaste, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setOuterHTML, setScrollLeft, setScrollTop, toggleAttribute, webkitMatchesSelector
after, append, appendChild, before, cloneNode, compareDocumentPosition, contains, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getRootNode, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isEqualNode, isSameNode, lookupPrefix, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
addEventListener, clearEventListenersContainer, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, put, setParentScope, setPrototype
public void jsConstructor()
jsConstructor
in class HTMLElement
public String getName()
name
.getName
in class HTMLElement
public void setName(String name)
name
.setName
in class HTMLElement
name
- the new valuepublic HTMLFormControlsCollection getElements()
elements
.public org.htmlunit.corejs.javascript.Scriptable iterator()
public int getLength()
public String getAction()
action
.public void setAction(String action)
action
.action
- the new valuepublic String getMethod()
method
.public void setMethod(String method)
method
.method
- the new propertypublic String getTarget()
target
.public void setTarget(String target)
target
.target
- the new valuepublic String getRel()
public void setRel(String rel)
rel
- rel attribute valuepublic DOMTokenList getRelList()
relList
attribute.relList
attributepublic void setRelList(Object rel)
rel
- attribute valuepublic String getEnctype()
enctype
.public void setEnctype(String enctype)
enctype
.enctype
- the new valuepublic String getEncoding()
encoding
.public void setEncoding(String encoding)
encoding
.encoding
- the new valuepublic HtmlForm getHtmlForm()
public void submit()
public void requestSubmit(Object submitter)
submitter
- The submit button whose attributes describe the method
by which the form is to be submitted. This may be either
an <input> or <button> element whose type attribute is submit.
If you omit the submitter parameter, the form element itself is used as the submitter.public void reset()
protected Object getWithPreemption(String name)
getWithPreemption
in class HtmlUnitScriptable
name
- the property nameScriptable.NOT_FOUND
if not foundpublic boolean has(String name, org.htmlunit.corejs.javascript.Scriptable start)
has
in interface org.htmlunit.corejs.javascript.Scriptable
has
in class org.htmlunit.corejs.javascript.ScriptableObject
name
- start
- protected org.htmlunit.corejs.javascript.ScriptableObject getOwnPropertyDescriptor(org.htmlunit.corejs.javascript.Context cx, Object id)
getOwnPropertyDescriptor
in class org.htmlunit.corejs.javascript.ScriptableObject
cx
- id
- public Object get(int index, org.htmlunit.corejs.javascript.Scriptable start)
get
in interface org.htmlunit.corejs.javascript.Scriptable
get
in class org.htmlunit.corejs.javascript.ScriptableObject
index
- the index of the propertystart
- the scriptable object that was originally queried for this propertypublic Object call(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args)
call
in interface org.htmlunit.corejs.javascript.Callable
call
in interface org.htmlunit.corejs.javascript.Function
public org.htmlunit.corejs.javascript.Scriptable construct(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, Object[] args)
construct
in interface org.htmlunit.corejs.javascript.Constructable
construct
in interface org.htmlunit.corejs.javascript.Function
public boolean dispatchEvent(Event event)
EventTarget
dispatchEvent
in class EventTarget
event
- the event to be dispatchedfalse
if at least one of the event handlers which handled the event
called preventDefault
; true
otherwisepublic boolean checkValidity()
public boolean isNoValidate()
novalidate
.public void setNoValidate(boolean value)
novalidate
.value
- the new valueCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.