public class JsValidityState extends JsElementalMixinBase implements ValidityState
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsValidityState() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCustomError()
The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
|
boolean |
isPatternMismatch()
The value does not match the specified
pattern
. |
boolean |
isRangeOverflow()
The value is greater than the specified
max
. |
boolean |
isRangeUnderflow()
The value is less than the specified
min
. |
boolean |
isStepMismatch()
The value does not fit the rules determined by
step
. |
boolean |
isTooLong()
The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.
|
boolean |
isTypeMismatch()
|
boolean |
isValid()
No other constraint validation conditions are true.
|
boolean |
isValueMissing()
The element has a
required
attribute, but no value. |
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final boolean isCustomError()
ValidityState
isCustomError
in interface ValidityState
public final boolean isPatternMismatch()
ValidityState
pattern
.isPatternMismatch
in interface ValidityState
public final boolean isRangeOverflow()
ValidityState
max
.isRangeOverflow
in interface ValidityState
public final boolean isRangeUnderflow()
ValidityState
min
.isRangeUnderflow
in interface ValidityState
public final boolean isStepMismatch()
ValidityState
step
.isStepMismatch
in interface ValidityState
public final boolean isTooLong()
ValidityState
The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.
true
in Gecko, because elements' values are prevented from being longer than maxlength.isTooLong
in interface ValidityState
public final boolean isTypeMismatch()
ValidityState
isTypeMismatch
in interface ValidityState
public final boolean isValid()
ValidityState
isValid
in interface ValidityState
public final boolean isValueMissing()
ValidityState
required
attribute, but no value.isValueMissing
in interface ValidityState
Copyright © 2018. All rights reserved.