
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, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final boolean isCustomError()
ValidityStateisCustomError in interface ValidityStatepublic final boolean isPatternMismatch()
ValidityStatepattern
.isPatternMismatch in interface ValidityStatepublic final boolean isRangeOverflow()
ValidityStatemax
.isRangeOverflow in interface ValidityStatepublic final boolean isRangeUnderflow()
ValidityStatemin
.isRangeUnderflow in interface ValidityStatepublic final boolean isStepMismatch()
ValidityStatestep
.isStepMismatch in interface ValidityStatepublic final boolean isTooLong()
ValidityStateThe 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 ValidityStatepublic final boolean isTypeMismatch()
ValidityStateisTypeMismatch in interface ValidityStatepublic final boolean isValid()
ValidityStateisValid in interface ValidityStatepublic final boolean isValueMissing()
ValidityStaterequired
attribute, but no value.isValueMissing in interface ValidityStateCopyright © 2016. All rights reserved.