зеркало из https://github.com/mozilla/pjs.git
Treat bogus "type" values as "text" consistently. Bug 225103, r+sr=peterv
This commit is contained in:
Родитель
8b1b76c827
Коммит
b56da8ba84
|
@ -1911,6 +1911,9 @@ nsHTMLInputElement::StringToAttribute(nsIAtom* aAttribute,
|
|||
}
|
||||
table++;
|
||||
}
|
||||
// Unknown type. We treat this as "text", but we set it as a string, not
|
||||
// as an HTMLValue.
|
||||
mType = NS_FORM_INPUT_TEXT;
|
||||
}
|
||||
else if (aAttribute == nsHTMLAtoms::checked) {
|
||||
aResult.SetEmptyValue();
|
||||
|
|
Загрузка…
Ссылка в новой задаче