| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index ff56d520c00cb7d6095a2a82f1bea9a63858cba1..5c403268faaa8c7aa3a625d431a155a3f6b5978d 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -395,14 +395,7 @@ void HTMLInputElement::handleBlurEvent()
|
|
|
| void HTMLInputElement::setType(const AtomicString& type)
|
| {
|
| - // FIXME: This should just call setAttribute. No reason to handle the empty string specially.
|
| - // We should write a test case to show that setting to the empty string does not remove the
|
| - // attribute in other browsers and then fix this. Note that setting to null *does* remove
|
| - // the attribute and setAttribute implements that.
|
| - if (type.isEmpty())
|
| - removeAttribute(typeAttr);
|
| - else
|
| - setAttribute(typeAttr, type);
|
| + setAttribute(typeAttr, type);
|
| }
|
|
|
| void HTMLInputElement::updateType()
|
|
|