Bug 827161, part 2 - Implement HTML 5's ValidityState.badInput and implement the state for HTMLInputElement's number type. r=smaug
This commit is contained in:
@@ -595,6 +595,17 @@ nsNumberControlFrame::GetValueOfAnonTextControl(nsAString& aValue)
|
||||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
nsNumberControlFrame::AnonTextControlIsEmpty()
|
||||
{
|
||||
if (!mTextField) {
|
||||
return true;
|
||||
}
|
||||
nsAutoString value;
|
||||
HTMLInputElement::FromContent(mTextField)->GetValue(value);
|
||||
return value.IsEmpty();
|
||||
}
|
||||
|
||||
Element*
|
||||
nsNumberControlFrame::GetPseudoElement(nsCSSPseudoElements::Type aType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user