Bug 1285425 - Set forms to valid in their constructor. r=bz
This commit is contained in:
@@ -119,6 +119,8 @@ HTMLFormElement::HTMLFormElement(already_AddRefed<mozilla::dom::NodeInfo>& aNode
|
||||
mInvalidElementsCount(0),
|
||||
mEverTriedInvalidSubmit(false)
|
||||
{
|
||||
// We start out valid.
|
||||
AddStatesSilently(NS_EVENT_STATE_VALID);
|
||||
}
|
||||
|
||||
HTMLFormElement::~HTMLFormElement()
|
||||
|
||||
Reference in New Issue
Block a user