Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1698)

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.cpp

Issue 2127093004: Don't treat an empty value attribute as null on image input types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@467579
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/input-image-button-with-empty-value-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index abb28d39af6b814cf3d5e44226af3712041dfb39..aef2434708d13cc21dd7f91f981022849856f837 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -827,7 +827,7 @@ String HTMLInputElement::altText() const
alt = fastGetAttribute(titleAttr);
if (alt.isNull())
alt = fastGetAttribute(valueAttr);
- if (alt.isEmpty())
+ if (alt.isNull())
alt = locale().queryString(WebLocalizedString::InputElementAltText);
return alt;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/input-image-button-with-empty-value-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698