Interface IValidityState
- Namespace
- AngleSharp.Html.Dom
- Assembly
- AngleSharp.dll
The ValidityState interface represents the validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.
[DomName("ValidityState")]
public interface IValidityState
- Extension Methods
Properties
IsBadInput
Gets if the value is regarded is invalid input.
[DomName("badInput")]
bool IsBadInput { get; }
Property Value
IsCustomError
Gets the element's custom validity message.
[DomName("customError")]
bool IsCustomError { get; }
Property Value
IsPatternMismatch
Gets if the value does not match the specified pattern.
[DomName("patternMismatch")]
bool IsPatternMismatch { get; }
Property Value
IsRangeOverflow
Gets if the value is greater than the maximum specified by the max attribute.
[DomName("rangeOverflow")]
bool IsRangeOverflow { get; }
Property Value
IsRangeUnderflow
Gets if the value is less than the minimum specified by the min attribute.
[DomName("rangeUnderflow")]
bool IsRangeUnderflow { get; }
Property Value
IsStepMismatch
Gets if the value does not fit the rules determined by the step attribute (that is, it's not evenly divisible by the step value).
[DomName("stepMismatch")]
bool IsStepMismatch { get; }
Property Value
IsTooLong
Gets if the value exceeds the specified maxlength.
[DomName("tooLong")]
bool IsTooLong { get; }
Property Value
IsTooShort
Gets if the value is below the specified minlength.
[DomName("tooShort")]
bool IsTooShort { get; }
Property Value
IsTypeMismatch
Gets if the value is not in the required syntax (when type is email or url).
[DomName("typeMismatch")]
bool IsTypeMismatch { get; }
Property Value
IsValid
Gets if the element meets all constraint validations, and is therefore considered to be valid.
[DomName("valid")]
bool IsValid { get; }
Property Value
IsValueMissing
Gets if the element has a required attribute, but no value.
[DomName("valueMissing")]
bool IsValueMissing { get; }