public class ValidityState extends HtmlUnitScriptable
ValidityState
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
ValidityState() |
Modifier and Type | Method and Description |
---|---|
boolean |
isBadInput() |
boolean |
isCustomError() |
boolean |
isPatternMismatch()
Returns whether the element value does not match its
pattern attribute. |
boolean |
isRangeOverflow()
Returns whether the element value is greater than its
max attribute. |
boolean |
isRangeUnderflow()
Returns whether the element value is less than its
min attribute. |
boolean |
isStepMismatch()
Returns whether the element value is invalid per its
step attribute. |
boolean |
isTooLong()
Returns whether the element value exceeds its
maxLength attribute. |
boolean |
isTooShort()
Returns whether the element value exceeds its
minLength attribute. |
boolean |
isTypeMismatch()
Returns whether the element value is invalid per its
type attribute. |
boolean |
isValid()
Returns whether the element value is valid.
|
boolean |
isValueMissing()
Returns whether the element (with a
required attribute) has no value. |
void |
jsConstructor()
JavaScript constructor.
|
void |
setDomNode(DomNode domNode)
Sets the DOM node that corresponds to this JavaScript object.
|
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, 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, 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
public void jsConstructor()
public void setDomNode(DomNode domNode)
setDomNode
in class HtmlUnitScriptable
domNode
- the DOM nodepublic boolean isBadInput()
public boolean isCustomError()
public boolean isPatternMismatch()
pattern
attribute.pattern
attributepublic boolean isRangeOverflow()
max
attribute.max
attributepublic boolean isRangeUnderflow()
min
attribute.min
attributepublic boolean isStepMismatch()
step
attribute.step
attributepublic boolean isTooLong()
maxLength
attribute.maxLength
attributepublic boolean isTooShort()
minLength
attribute.minLength
attributepublic boolean isTypeMismatch()
type
attribute.type
attributepublic boolean isValueMissing()
required
attribute) has no value.required
attribute) has no valuepublic boolean isValid()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.