Class HTMLInputElement
- java.lang.Object
-
- org.htmlunit.corejs.javascript.ScriptableObject
-
- org.htmlunit.javascript.HtmlUnitScriptable
-
- org.htmlunit.javascript.host.event.EventTarget
-
- org.htmlunit.javascript.host.dom.Node
-
- org.htmlunit.javascript.host.Element
-
- org.htmlunit.javascript.host.html.HTMLElement
-
- org.htmlunit.javascript.host.html.HTMLInputElement
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.htmlunit.corejs.javascript.ConstProperties
,org.htmlunit.corejs.javascript.debug.DebuggableObject
,org.htmlunit.corejs.javascript.Scriptable
,org.htmlunit.corejs.javascript.SymbolScriptable
public class HTMLInputElement extends HTMLElement
The JavaScript object forHtmlInput
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.javascript.host.html.HTMLElement
HTMLElement.ProxyDomNode
-
-
Field Summary
Fields Modifier and Type Field Description private NodeList
labels_
"Live" labels collection; has to be a member to have equality (==) working.-
Fields inherited from class org.htmlunit.javascript.host.dom.Node
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
-
-
Constructor Summary
Constructors Constructor Description HTMLInputElement()
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkValidity()
Checks whether the element has any constraints and whether it satisfies them.void
click()
Click this element.java.lang.String
getAccept()
Returns theaccept
attribute.java.lang.String
getAlign()
Returns the value of thealign
property.java.lang.String
getAlt()
Returns the value of thealt
property.java.lang.String
getAttribute(java.lang.String attributeName)
java.lang.String
getAutocomplete()
Returns theautocomplete
attribute.java.lang.String
getDefaultValue()
Returns the input's default value, used if the containing form gets reset.HtmlInput
getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.java.lang.Object
getFiles()
Returns thefiles
property.HTMLFormElement
getForm()
Returns the value of the JavaScriptform
attribute.int
getHeight()
Returns theheight
property.NodeList
getLabels()
Returns the labels associated with the element.java.lang.String
getMax()
Gets themax
property.int
getMaxLength()
Gets the max length.java.lang.String
getMin()
Gets themin
property.int
getMinLength()
Gets theminLength
.java.lang.String
getName()
Returns the value of the JavaScript attributename
.java.lang.String
getPlaceholder()
Returns theplaceholder
attribute.java.lang.Object
getSelectionEnd()
Gets the value ofselectionEnd
attribute.java.lang.Object
getSelectionStart()
Gets the value ofselectionStart
attribute.java.lang.String
getSize()
Returns thesize
attribute.java.lang.String
getSrc()
Returns the value of thesrc
attribute.java.lang.String
getStep()
Gets thestep
property.int
getTextLength()
Gets the value oftextLength
attribute.java.lang.String
getType()
Returns thetype
property.ValidityState
getValidity()
java.lang.String
getValue()
Returns the value of the JavaScript attributevalue
.int
getWidth()
Returns thewidth
property.boolean
getWillValidate()
boolean
isChecked()
Returns the value of the checked property.boolean
isDefaultChecked()
Returns the input's default checked value, used if the containing form gets reset.boolean
isDisabled()
Returns true if this element is disabled.protected boolean
isEndTagForbidden()
Returns whether the end tag is forbidden or not.boolean
isFormNoValidate()
Returns the value of the propertyformnovalidate
.boolean
isReadOnly()
Gets the value ofreadOnly
attribute.boolean
isRequired()
Returns therequired
property.void
jsConstructor()
JavaScript constructor.void
select()
Select this element.void
setAccept(java.lang.String accept)
Sets theaccept
attribute.void
setAlign(java.lang.String align)
Sets the value of thealign
property.void
setAlt(java.lang.String alt)
Returns the value of thealt
property.void
setAutocomplete(java.lang.String autocomplete)
Sets theautocomplete
attribute.void
setChecked(boolean checked)
Sets the checked property.void
setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.void
setDefaultChecked(boolean defaultChecked)
Sets the input's default checked value, used if the containing form gets reset.void
setDefaultValue(java.lang.String defaultValue)
Sets the input's default value, used if the containing form gets reset.void
setDisabled(boolean disabled)
Sets whether or not to disable this element.void
setFormNoValidate(boolean value)
Sets the value of the propertyformnovalidate
.void
setHeight(int height)
Sets theheight
property.void
setMax(java.lang.String max)
Sets themax
property.void
setMaxLength(int length)
Sets the value ofmaxLength
attribute.void
setMin(java.lang.String min)
Sets themin
property.void
setMinLength(int length)
Sets the value ofminLength
attribute.void
setName(java.lang.String newName)
Sets the value of the JavaScript attributename
.void
setPlaceholder(java.lang.String placeholder)
Sets theplaceholder
attribute.void
setReadOnly(boolean readOnly)
Sets the value ofreadOnly
attribute.void
setRequired(boolean required)
Sets therequired
property.void
setSelectionEnd(int end)
Sets the value ofselectionEnd
attribute.void
setSelectionRange(int start, int end)
Sets the selected portion of this input element.void
setSelectionStart(int start)
Sets the value ofselectionStart
attribute.void
setSize(java.lang.String size)
Sets thesize
attribute.void
setSrc(java.lang.String src)
Sets the value of thesrc
attribute.void
setStep(java.lang.String step)
Sets thestep
property.void
setType(java.lang.String newType)
Sets the value of the attributetype
.void
setValue(java.lang.Object newValue)
Sets the value of the JavaScript attributevalue
.void
setWidth(int width)
Sets thewidth
property.-
Methods inherited from class org.htmlunit.javascript.host.html.HTMLElement
blur, focus, getAccessKey, getAlign, getAttributeNode, getAutofocus, getBoundingClientRect, getCh, getChOff, getContentEditable, getDataset, getDir, getDomNodeOrNull, getEnterKeyHint, 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, getWidthOrHeight, isAncestorOfEventTarget, isHidden, isIsContentEditable, isLowerCaseInOuterHtml, isSpellcheck, setAccessKey, setAlign, setAttribute, setAutofocus, setCh, setChOff, setColorAttribute, setContentEditable, setDir, 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, setWidthOrHeight, toString
-
Methods inherited from class org.htmlunit.javascript.host.Element
after, append, before, closest, createAttributesObject, createEventHandler, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassList, getClassName_js, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnbeforecopy, getOnbeforecut, getOnbeforepaste, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getOuterHTML, getParentElement, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttribute, hasAttributeNS, hasAttributes, innerHTML, 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
-
Methods inherited from class org.htmlunit.javascript.host.dom.Node
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, normalize, prepend, removeChild, replaceChild, replaceChildren, replaceWith, setNodeValue
-
Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
-
Methods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setParentScope, setupPromise, setupRejectedPromise
-
Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, 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
-
-
-
-
Field Detail
-
labels_
private NodeList labels_
"Live" labels collection; has to be a member to have equality (==) working.
-
-
Method Detail
-
jsConstructor
public void jsConstructor()
JavaScript constructor.- Overrides:
jsConstructor
in classHTMLElement
-
getType
public java.lang.String getType()
Returns thetype
property.- Returns:
- the
type
property
-
setType
public void setType(java.lang.String newType)
Sets the value of the attributetype
. Note: this replace the DOM node with a new one.- Parameters:
newType
- the new type to set
-
setValue
public void setValue(java.lang.Object newValue)
Sets the value of the JavaScript attributevalue
.- Overrides:
setValue
in classHTMLElement
- Parameters:
newValue
- the new value
-
setChecked
public void setChecked(boolean checked)
Sets the checked property. Although this property is defined in Input it doesn't make any sense for input's other than checkbox and radio. This implementation does nothing. The implementations in Checkbox and Radio actually do the work.- Parameters:
checked
- True if this input should have thechecked
attribute set
-
getDomNodeOrDie
public HtmlInput getDomNodeOrDie()
Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.- Overrides:
getDomNodeOrDie
in classHTMLElement
- Returns:
- the DOM node
-
isChecked
public boolean isChecked()
Returns the value of the checked property. Although this property is defined in Input it doesn't make any sense for input's other than checkbox and radio. This implementation does nothing. The implementations in Checkbox and Radio actually do the work.- Returns:
- the checked property
-
select
public void select()
Select this element.
-
getDefaultValue
public java.lang.String getDefaultValue()
Returns the input's default value, used if the containing form gets reset.- Returns:
- the input's default value, used if the containing form gets reset
- See Also:
- MSDN Documentation
-
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
Sets the input's default value, used if the containing form gets reset.- Parameters:
defaultValue
- the input's default value, used if the containing form gets reset- See Also:
- MSDN Documentation
-
isDefaultChecked
public boolean isDefaultChecked()
Returns the input's default checked value, used if the containing form gets reset.- Returns:
- the input's default checked value, used if the containing form gets reset
- See Also:
- MSDN Documentation
-
setDefaultChecked
public void setDefaultChecked(boolean defaultChecked)
Sets the input's default checked value, used if the containing form gets reset.- Parameters:
defaultChecked
- the input's default checked value, used if the containing form gets reset- See Also:
- MSDN Documentation
-
getTextLength
public int getTextLength()
Gets the value oftextLength
attribute.- Returns:
- the text length
-
getSelectionStart
public java.lang.Object getSelectionStart()
Gets the value ofselectionStart
attribute.- Returns:
- the selection start
-
setSelectionStart
public void setSelectionStart(int start)
Sets the value ofselectionStart
attribute.- Parameters:
start
- selection start
-
getSelectionEnd
public java.lang.Object getSelectionEnd()
Gets the value ofselectionEnd
attribute.- Returns:
- the selection end
-
setSelectionEnd
public void setSelectionEnd(int end)
Sets the value ofselectionEnd
attribute.- Parameters:
end
- selection end
-
getMaxLength
public int getMaxLength()
Gets the max length.- Returns:
- the max length
-
setMaxLength
public void setMaxLength(int length)
Sets the value ofmaxLength
attribute.- Parameters:
length
- the new value
-
getMinLength
public int getMinLength()
Gets theminLength
.- Returns:
- the
minLength
-
setMinLength
public void setMinLength(int length)
Sets the value ofminLength
attribute.- Parameters:
length
- the new value
-
getMin
public java.lang.String getMin()
Gets themin
property.- Returns:
- the
min
property
-
setMin
public void setMin(java.lang.String min)
Sets themin
property.- Parameters:
min
- themin
property
-
getMax
public java.lang.String getMax()
Gets themax
property.- Returns:
- the
max
property
-
setMax
public void setMax(java.lang.String max)
Sets themax
property.- Parameters:
max
- themax
property
-
getStep
public java.lang.String getStep()
Gets thestep
property.- Returns:
- the
step
property
-
setStep
public void setStep(java.lang.String step)
Sets thestep
property.- Parameters:
step
- thestep
property
-
isReadOnly
public boolean isReadOnly()
Gets the value ofreadOnly
attribute.- Returns:
- the readOnly attribute
-
setReadOnly
public void setReadOnly(boolean readOnly)
Sets the value ofreadOnly
attribute.- Parameters:
readOnly
- the new value
-
setSelectionRange
public void setSelectionRange(int start, int end)
Sets the selected portion of this input element.- Parameters:
start
- the index of the first character to selectend
- the index of the character after the selection
-
getAlt
public java.lang.String getAlt()
Returns the value of thealt
property.- Returns:
- the value of the
alt
property
-
setAlt
public void setAlt(java.lang.String alt)
Returns the value of thealt
property.- Parameters:
alt
- the value
-
getAlign
public java.lang.String getAlign()
Returns the value of thealign
property.- Returns:
- the value of the
align
property
-
setAlign
public void setAlign(java.lang.String align)
Sets the value of thealign
property.- Parameters:
align
- the value of thealign
property
-
getSrc
public java.lang.String getSrc()
Returns the value of thesrc
attribute.- Returns:
- the value of the
src
attribute
-
setSrc
public void setSrc(java.lang.String src)
Sets the value of thesrc
attribute.- Parameters:
src
- the new value
-
getValue
public java.lang.String getValue()
Returns the value of the JavaScript attributevalue
.- Overrides:
getValue
in classHTMLElement
- Returns:
- the value of this attribute
-
getAttribute
public java.lang.String getAttribute(java.lang.String attributeName)
- Overrides:
getAttribute
in classElement
- Parameters:
attributeName
- attribute name- Returns:
- the value of the specified attribute,
null
if the attribute is not defined
-
click
public void click() throws java.io.IOException
Click this element. This simulates the action of the user clicking with the mouse.- Overrides:
click
in classHTMLElement
- Throws:
java.io.IOException
- if this click triggers a page load that encounters problems
-
isEndTagForbidden
protected boolean isEndTagForbidden()
Returns whether the end tag is forbidden or not.- Overrides:
isEndTagForbidden
in classHTMLElement
- Returns:
- whether the end tag is forbidden or not
- See Also:
- HTML 4 specs
-
isRequired
public boolean isRequired()
Returns therequired
property.- Returns:
- the
required
property
-
setRequired
public void setRequired(boolean required)
Sets therequired
property.- Parameters:
required
- the new value
-
getSize
public java.lang.String getSize()
Returns thesize
attribute.- Returns:
- the
size
attribute
-
setSize
public void setSize(java.lang.String size)
Sets thesize
attribute.- Parameters:
size
- the newsize
value
-
getAccept
public java.lang.String getAccept()
Returns theaccept
attribute.- Returns:
- the
accept
attribute
-
setAccept
public void setAccept(java.lang.String accept)
Sets theaccept
attribute.- Parameters:
accept
- the newaccept
value
-
getAutocomplete
public java.lang.String getAutocomplete()
Returns theautocomplete
attribute.- Returns:
- the
autocomplete
attribute
-
setAutocomplete
public void setAutocomplete(java.lang.String autocomplete)
Sets theautocomplete
attribute.- Parameters:
autocomplete
- the newautocomplete
value
-
getFiles
public java.lang.Object getFiles()
Returns thefiles
property.- Returns:
- the
files
property
-
getPlaceholder
public java.lang.String getPlaceholder()
Returns theplaceholder
attribute.- Returns:
- the
placeholder
attribute
-
setPlaceholder
public void setPlaceholder(java.lang.String placeholder)
Sets theplaceholder
attribute.- Parameters:
placeholder
- the newplaceholder
value
-
getWidth
public int getWidth()
Returns thewidth
property.- Returns:
- the
width
property
-
setWidth
public void setWidth(int width)
Sets thewidth
property.- Parameters:
width
- thewidth
property
-
getHeight
public int getHeight()
Returns theheight
property.- Returns:
- the
height
property
-
setHeight
public void setHeight(int height)
Sets theheight
property.- Parameters:
height
- theheight
property
-
getLabels
public NodeList getLabels()
Returns the labels associated with the element.- Returns:
- the labels associated with the element
-
checkValidity
public boolean checkValidity()
Checks whether the element has any constraints and whether it satisfies them.- Returns:
- if the element is valid
-
getName
public java.lang.String getName()
Returns the value of the JavaScript attributename
.- Overrides:
getName
in classHTMLElement
- Returns:
- the value of this attribute
-
setName
public void setName(java.lang.String newName)
Sets the value of the JavaScript attributename
.- Overrides:
setName
in classHTMLElement
- Parameters:
newName
- the new name
-
isDisabled
public boolean isDisabled()
Returns true if this element is disabled. Overridden to modify browser configurations.- Overrides:
isDisabled
in classHTMLElement
- Returns:
- true if this element is disabled
-
setDisabled
public void setDisabled(boolean disabled)
Sets whether or not to disable this element. Overridden to modify browser configurations.- Overrides:
setDisabled
in classHTMLElement
- Parameters:
disabled
- True if this is to be disabled
-
getForm
public HTMLFormElement getForm()
Returns the value of the JavaScriptform
attribute.- Overrides:
getForm
in classHTMLElement
- Returns:
- the value of the JavaScript
form
attribute
-
getValidity
public ValidityState getValidity()
- Returns:
- a ValidityState with the validity states that this element is in.
-
getWillValidate
public boolean getWillValidate()
- Returns:
- whether the element is a candidate for constraint validation
-
setCustomValidity
public void setCustomValidity(java.lang.String message)
Sets the custom validity message for the element to the specified message.- Parameters:
message
- the new message
-
isFormNoValidate
public boolean isFormNoValidate()
Returns the value of the propertyformnovalidate
.- Returns:
- the value of this property
-
setFormNoValidate
public void setFormNoValidate(boolean value)
Sets the value of the propertyformnovalidate
.- Parameters:
value
- the new value
-
-