NEW275027
`value` attribute on HTMLTextAreaElement should treat `null` as emptyString
https://bugs.webkit.org/show_bug.cgi?id=275027
Summary `value` attribute on HTMLTextAreaElement should treat `null` as emptyString
Ahmad Saleem
Reported 2024-06-02 07:01:47 PDT
Hi Team, While going through Blink's patches, I came across another potential merge: Blink Commit: https://chromium-review.googlesource.com/c/chromium/src/+/1230173 WebKit Source: https://searchfox.org/wubkat/rev/4eb5890b06fef636c92e25930b303010b12184f6/Source/WebCore/html/HTMLTextAreaElement.cpp#365 auto normalizedValue = newValue.isNull() ? emptyString() : makeStringBySimplifyingNewLines(newValue); Changed to: auto normalizedValue = makeStringBySimplifyingNewLines(newValue); Just wanted to raise to get input. Thanks!
Attachments
Radar WebKit Bug Importer
Comment 1 2024-06-09 07:02:13 PDT
Anne van Kesteren
Comment 2 2024-06-13 07:32:31 PDT
Our IDL appears correct and this branch is at worst redundant, but it's a bit unclear given that ::setValueCommon is not just called from ::setValue. You'd have to figure out if the other callers of ::setValueCommon need this or not.
Note You need to log in before you can comment on or make changes to this bug.