Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * Copyright 2012 Google Inc.
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
 package elemental.html;
 import  elemental.html.*;
 import java.util.Date;

The DOMĀ ValidityState interface represents the validity states that an element can be in, with respect to constraint validation.
 public interface ValidityState {

The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
   boolean isCustomError();

The value does not match the specified pattern .
   boolean isPatternMismatch();

The value is greater than the specified max .
   boolean isRangeOverflow();

The value is less than the specified min .
   boolean isRangeUnderflow();

The value does not fit the rules determined by step .
   boolean isStepMismatch();


The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.

Note: This will never be true in Gecko, because elements' values are prevented from being longer than maxlength.
   boolean isTooLong();

The value is not in the required syntax (when type is email or url).
   boolean isTypeMismatch();

No other constraint validation conditions are true.
   boolean isValid();

The element has a required attribute, but no value.
  boolean isValueMissing();
New to GrepCode? Check out our FAQ X