Chromium Code Reviews
DescriptionFIELDSET element should not check inner controls in checkValidity().
fieldset.checkValidity() referred to inner control validity state by accident.
The common implmentatin of checkValidity() just calls isValidElement(), and
FIELDSET's isValidElement() checks inner controls validity for :valid/:invalid.
This CL adds willValidate check to the common checkValidity(). Also, it exposed
an issue described in HTMLFormControlElement::setNeedsWillValidateCheck()
because we used to clear m_validityIsDirty in checkValidity().
BUG=633794
Committed: https://crrev.com/52ccdca1f50ae313029eb6e996a3ef4288b3f638
Cr-Commit-Position: refs/heads/master@{#409500}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|
|||||||||||||||||||||||||||||||||||||