зеркало из https://github.com/mozilla/gecko-dev.git
Bug 603586 - input.list shouldn't return the element associated with the id if it's not a datalist element. r+a=bz
This commit is contained in:
Родитель
43f0f43519
Коммит
22b9825506
|
@ -1117,7 +1117,7 @@ nsHTMLInputElement::GetList(nsIDOMHTMLElement** aValue)
|
|||
if (doc) {
|
||||
Element* elem = doc->GetElementById(dataListId);
|
||||
|
||||
if (elem) {
|
||||
if (elem && elem->IsHTML(nsGkAtoms::datalist)) {
|
||||
CallQueryInterface(elem, aValue);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче