| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index a3a753c1a03e9919ddf9001d63b20384c5a1fa2e..fade032976a20259bbd6ba58d8e284a9749f0595 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -1485,7 +1485,7 @@ HTMLDataListElement* HTMLInputElement::dataList() const
|
| Element* element = treeScope().getElementById(fastGetAttribute(listAttr));
|
| if (!element)
|
| return 0;
|
| - if (!element->hasTagName(datalistTag))
|
| + if (!isHTMLDataListElement(*element))
|
| return 0;
|
|
|
| return toHTMLDataListElement(element);
|
|
|