[webkit-changes] [WebKit/WebKit] e5ac3b: Don't treat an empty value attribute as null on im...
Ahmad Saleem
noreply at github.com
Sat Sep 2 21:27:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e5ac3b8b98d2b58ab6406bd72eae9d27225746ea
https://github.com/WebKit/WebKit/commit/e5ac3b8b98d2b58ab6406bd72eae9d27225746ea
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2023-09-02 (Sat, 02 Sep 2023)
Changed paths:
A LayoutTests/fast/forms/input-image-button-with-empty-value-expected.html
A LayoutTests/fast/forms/input-image-button-with-empty-value.html
M Source/WebCore/html/HTMLInputElement.cpp
Log Message:
-----------
Don't treat an empty value attribute as null on image input types
https://bugs.webkit.org/show_bug.cgi?id=261072
Reviewed by Tim Nguyen.
This patch aligns WebKit with Blink / Chromium and Gecko / Firefox.
Merge: https://chromium.googlesource.com/chromium/src.git/+/350b1fecbdea7310b122e3e83c67929fa282d754
If value="" is specified on an image-type form control then use "" as the alt-text
for the control if one is required. This matches Firefox and Edge, also IE11.
* Source/WebCore/html/HTMLInputElement.cpp:
(HTMLInputElement::altText):
* LayoutTests/fast/forms/input-image-button-with-empty-value.html: Add Test Case
* LayoutTests/fast/forms/input-image-button-with-empty-value-expected.html: Add Test Case Expectation
Canonical link: https://commits.webkit.org/267592@main
More information about the webkit-changes
mailing list