зеркало из https://github.com/mozilla/gecko-dev.git
Make selects incremental by default. Bug 278881, patch by aaronr, r=smaug, sr=bryner
This commit is contained in:
Родитель
4d665a6cb1
Коммит
bd1eb9e46e
|
@ -361,7 +361,10 @@ nsXFormsSelectElement::HandleEvent(nsIDOMEvent *aEvent)
|
|||
|
||||
nsAutoString value;
|
||||
mElement->GetAttribute(NS_LITERAL_STRING("incremental"), value);
|
||||
PRBool isIncremental = value.EqualsLiteral("true");
|
||||
|
||||
// the default incremental value for a select element is 'true' according
|
||||
// to the spec, so if there is no incremental value, assume true.
|
||||
PRBool isIncremental = !value.EqualsLiteral("false");
|
||||
|
||||
if ((isIncremental && type.EqualsLiteral("change")) ||
|
||||
(!isIncremental && type.EqualsLiteral("blur"))) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче