JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.html

Class ValidityState

    • Field Summary

      • Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
      • Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

        NOT_FOUND
    • Constructor Summary

      Constructors
      Constructor and Description
      ValidityState ()
    • Method Summary

      All Methods
      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.
      • Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject

        applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChangeForSlot, checkPropertyDefinition, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, 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, getSuperProperty, getSuperProperty, getSuperProperty, 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, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
      • Methods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner

        createSlotMap
    • Constructor Detail

      • ValidityState

        public ValidityState()
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • setDomNode

        public void setDomNode(DomNode domNode)
        Sets the DOM node that corresponds to this JavaScript object.
        Overrides:
        setDomNode in class HtmlUnitScriptable
        Parameters:
        domNode - the DOM node
      • isBadInput

        public boolean isBadInput()
        Returns:
        a boolean value that is true if the user has provided input that the browser is unable to convert.
      • isCustomError

        public boolean isCustomError()
        Returns:
        whether the customer validity message is set or not
      • isPatternMismatch

        public boolean isPatternMismatch()
        Returns whether the element value does not match its pattern attribute.
        Returns:
        whether the element value does not match its pattern attribute
      • isRangeOverflow

        public boolean isRangeOverflow()
        Returns whether the element value is greater than its max attribute.
        Returns:
        whether the element value is greater than its max attribute
      • isRangeUnderflow

        public boolean isRangeUnderflow()
        Returns whether the element value is less than its min attribute.
        Returns:
        whether the element value is less than its min attribute
      • isStepMismatch

        public boolean isStepMismatch()
        Returns whether the element value is invalid per its step attribute.
        Returns:
        whether the element value is invalid per its step attribute
      • isTooLong

        public boolean isTooLong()
        Returns whether the element value exceeds its maxLength attribute.
        Returns:
        whether the element value exceeds its maxLength attribute
      • isTooShort

        public boolean isTooShort()
        Returns whether the element value exceeds its minLength attribute.
        Returns:
        whether the element value exceeds its minLength attribute
      • isTypeMismatch

        public boolean isTypeMismatch()
        Returns whether the element value is invalid per its type attribute.
        Returns:
        whether the element value is invalid per its type attribute
      • isValueMissing

        public boolean isValueMissing()
        Returns whether the element (with a required attribute) has no value.
        Returns:
        whether the element (with a required attribute) has no value
      • isValid

        public boolean isValid()
        Returns whether the element value is valid.
        Returns:
        whether the element value is valid
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /